Create connection
When you create a telephone channel, you can connect your own third-party speech recognition and synthesis account.
Click the ASR/TTS tab and select Create connection in the Connection field. Then select your provider and fill out connection settings.
Please note that there’s no need to re-create your connection if you already use ASR/TTS from another provider. Create a connection, e.g. for ASR. Then select your connection from the list under TTS.
How to connect Google ASR/TTS
You need to create a JWT Token to connect Google ASR/TTS. To do this:
- Open the Cloud Console and click IAM & Admin in the left panel. Select Service Accounts in the left panel.
- Click Select a project, select the project and click Open.
- Find the row for the account you want to create a key for. In this row, click the
icon and select Create key from the dropdown list. - Select the key type and click Create. The newly created key will be saved to your computer.
You can also use other methods to create a JWT Token for Google ASR/TTS (learn more here).
Please note that the key format may be different depending on how you create it. Keys created using Cloud Console look as follows:
{
"type": "service_account",
"project_id": "project-id",
"private_key_id": "key-id",
"private_key": "-----BEGIN PRIVATE KEY-----\nprivate-key\n-----END PRIVATE KEY-----\n",
"client_email": "service-account-email",
"client_id": "client-id",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://accounts.google.com/o/oauth2/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/service-account-email"
}Now load your key to the connection settings when you create a channel in JAICP and click Save.
How to connect Yandex ASR/TTS
You will need to create a service account private key and to copy IDs of your directory, public key and service account to connect Yandex ASR/TTS.
Service account private key
If you do not have a service account yet, create it and assign roles to it.
To create a service account private key:
- Go to the directory your service account belongs to.
- Click the Service accounts tab.
- Select a service account and click the row with its name.
- Click Create new key in the left pane. Select Create authorized key.
- Specify the key description to make it easier to find in the control console later.
- Save the identifier and the private key.
You can also user other methods to create a service account private key for Yandex ASR/TTS (learn more here).
Service account private key format:
-----BEGIN PRIVATE KEY-----EXAMPLE1234567G9w0BAQEFAASCBKgwggS
cmQxJjAkBgNVBAoTHVByb2dyZXNzIFNvZnR3YXJlIENvcnBvcmF0aW9uMSAwHgYD
VQQDDBcqLmF3cy10ZXN0LnByb2dyZXNzLmNvbTCCASIwDQYJKoZIhvcNAQEBBQAD
...
EXAMPLE1234567YWxzaGEyZzIuY3JsMIGgBggrBgEFBQcBAQSBkzCBkDBNBggrBgEF
BQcwAoZBaHR0cDovL3NlY3VyZS5nbG9iYWxzaWduLmNvbS9jYWNlcnQvZ3Nvcmdh
z3P668YfhUbKdRF6S42Cg6zn-----END PRIVATE KEY-----Service account and public key identifiers
- Go to the directory your service account belongs to.
- Click the Service accounts tab.
- Select a service account and click the row with its name.
- You can find your service account ID under Overview. Service account identifier format:
example0mjt06siua65usm- You can find your public key ID under Authorized keys next to the name of the previously created key. Public key identifier format:
example0mjt06siua65usmDirectory identifier
- Open the directory page. You can select the directory in the control console start page. Directories for the cloud selected are usually displayed in this page. You may switch to another cloud if you want.
- Get the directory identifier from the directory page URL in the control console:
https://console.cloud.yandex.ru/folders/example1234567example1234567 is the directory ID.
Now fill out the fields in the connection settings when you create a channel in JAICP and click Save.
How to connect Tinkoff ASR/TTS
You need to create an authorization token to connect Tinkoff ASR/TTS. Learn more about creating an authorization token in the Tinkoff Voicekit documentation
Specify API_KEY for API key and SECRET_KEY for Secret key in the connection settings when you create a channel in JAICP. Click Save.