github.com/TinkoffCreditSystems/voicekit-examples/golang

Examples on how to use Tinkoff Voicekit


Keywords
golang, nodejs, python, speech-recognition, speech-synthesis
License
Apache-2.0
Install
go get github.com/TinkoffCreditSystems/voicekit-examples/golang

Documentation

Tinkoff VoiceKit Examples

https://voicekit.tinkoff.ru

Usage

Clone this repo

$ git clone --recursive https://github.com/Tinkoff/voicekit-examples.git
$ cd voicekit-examples

Setup environment

Set VOICEKIT_API_KEY and VOICEKIT_SECRET_KEY environment variables to your API key and secret key to authenticate your requests to VoiceKit:

export VOICEKIT_API_KEY="Your API key"
export VOICEKIT_SECRET_KEY="Your secret key"

You may get scope tinkoff.cloud.tts is not supported error if your API key does not support speech synthesis. Write us a letter at https://voicekit.tinkoff.ru to enable speech synthesis for you API key.

Language specific instructions

Follow language specific instructions in the related folder in repository root. E.g. for Python scripts, open python/README.md. Here is a list of links to instructions for supported languages:

If you can't find your favorite language here, don't worry: consult gRPC docs for a list of its supported languages and when you are ready dive into Protobuf definitions inside apis/ folder.

Note on endpoint format

Use api.tinkoff.ai:443. Unencrypted endpoints (with port 80) are not available.