{
    "componentChunkName": "component---src-templates-doc-page-js",
    "path": "/docs/en/telephony/own_telephony/",
    "result": {"data":{"site":{"siteMetadata":{"title":"Gatsby-doc-engine"}},"markdownRemark":{"id":"3e8b80c7-8a39-5e14-b05f-9ae325d5d8d0","excerpt":"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…","html":"<h1>Create connection</h1>\n<hr>\n<p class='warn'>When you <a href=/1.10.3/docs/en/telephony/telephone_channel  >create a telephone channel</a>, you can connect your own third-party speech recognition and synthesis account.</p>\n<p>Click the ASR/TTS tab and select <em>Create connection</em> in the <em>Connection</em> field. Then select your provider and fill out connection settings.</p>\n<p>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.</p>\n</br>\n<h3>How to connect Google ASR/TTS</h3>\n<p>You need to create a JWT Token to connect Google ASR/TTS. To do this:</p>\n<ol>\n<li>Open the <a href=\"https://console.cloud.google.com/home/dashboard?project=peak-sunset-291909&#x26;folder=&#x26;organizationId=&#x26;supportedpurview=project\" target=\"_blank\" rel=\"noopener noreferrer\">Cloud Console</a> and click <em>IAM &#x26; Admin</em> in the left panel. Select <em>Service Accounts</em> in the left panel.</li>\n<li>Click <em>Select a project</em>, select the project and click <em>Open</em>.</li>\n<li>Find the row for the account you want to create a key for. In this row, click the <span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 12px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 166.66666666666669%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAhCAYAAADZPosTAAAACXBIWXMAABJ0AAASdAHeZh94AAABL0lEQVRIx2P4T2XAMDQN/PfvH15NIHlcamhrILLCP3/+/L9589b/TZu3/J8wYdL/JUuW/j9z5uz/z58/47UYZxh++/bt//IVK/9HREb/l5SS/W9r5/C/u6f3/8OHD8mLlOfPn/9vbGr+b2llCzZQS1vvf2JSyv9Tp07jDRb6GUgVL2OLlM1btv6fPGXq/2XLlpMeKTADiU02ZBv46uWr/79+/cZwGUnJ5sePH/8fPHj4f//+A/9nzZrzf/2Gjf+vX7/+/+PHT6TnFBB4+vTp/+bm1v+OTi7/tbR1/5uaWf5PSU3/f/Lkqf9///4l3cAHDx78z8rO+S+voPyfm4f/v4ioxH83d8//+/btJ89AqruQKmFI9VimWTqkWk4ZLb5oU3xRpU4ZvNXoCG7bDCoDAdvEslN5YVnzAAAAAElFTkSuQmCC'); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"Google Cloud Platform advanced settings\"\n        title=\":size=12\"\n        src=\"/1.10.3/static/5039954bbc3a53758bf7bc575706ceff/67bd0/Screenshot_10.png\"\n        srcset=\"/1.10.3/static/5039954bbc3a53758bf7bc575706ceff/67bd0/Screenshot_10.png 12w\"\n        sizes=\"(max-width: 12px) 100vw, 12px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n        decoding=\"async\"\n      />\n    </span> icon and select <em>Create key</em> from the dropdown list.</li>\n<li>Select the key type and click <em>Create</em>. The newly created key will be saved to your computer.</li>\n</ol>\n<p class='warn'>You can also use other methods to create a JWT Token for Google ASR/TTS (learn more <a href=https://cloud.google.com/iam/docs/creating-managing-service-account-keys#iam-service-account-keys-create-console target=\"_blank\" rel=\"noopener noreferrer\">here</a>).</p>\n<p>Please note that the key format may be different depending on how you create it. Keys created using <em>Cloud Console</em> look as follows:</p>\n<div class=\"gatsby-highlight\" data-language=\"json\"><pre class=\"language-json\"><code class=\"language-json\"><span class=\"token punctuation\">{</span>\n  <span class=\"token property\">\"type\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"service_account\"</span><span class=\"token punctuation\">,</span>\n  <span class=\"token property\">\"project_id\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"project-id\"</span><span class=\"token punctuation\">,</span>\n  <span class=\"token property\">\"private_key_id\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"key-id\"</span><span class=\"token punctuation\">,</span>\n  <span class=\"token property\">\"private_key\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"-----BEGIN PRIVATE KEY-----\\nprivate-key\\n-----END PRIVATE KEY-----\\n\"</span><span class=\"token punctuation\">,</span>\n  <span class=\"token property\">\"client_email\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"service-account-email\"</span><span class=\"token punctuation\">,</span>\n  <span class=\"token property\">\"client_id\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"client-id\"</span><span class=\"token punctuation\">,</span>\n  <span class=\"token property\">\"auth_uri\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"https://accounts.google.com/o/oauth2/auth\"</span><span class=\"token punctuation\">,</span>\n  <span class=\"token property\">\"token_uri\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"https://accounts.google.com/o/oauth2/token\"</span><span class=\"token punctuation\">,</span>\n  <span class=\"token property\">\"auth_provider_x509_cert_url\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"https://www.googleapis.com/oauth2/v1/certs\"</span><span class=\"token punctuation\">,</span>\n  <span class=\"token property\">\"client_x509_cert_url\"</span><span class=\"token operator\">:</span> <span class=\"token string\">\"https://www.googleapis.com/robot/v1/metadata/x509/service-account-email\"</span>\n<span class=\"token punctuation\">}</span></code></pre></div>\n<p>Now load your key to the connection settings when you create a channel in JAICP and click <em>Save</em>.</p>\n</br>\n<h3>How to connect Yandex ASR/TTS</h3>\n<p>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.</p>\n</br>\n<h4>Service account private key</h4>\n<p>If you do not have a service account yet, <a href=\"https://cloud.yandex.ru/docs/iam/operations/sa/create\" target=\"_blank\" rel=\"noopener noreferrer\">create it</a> and <a href=\"https://cloud.yandex.ru/docs/iam/operations/sa/assign-role-for-sa\" target=\"_blank\" rel=\"noopener noreferrer\">assign roles to it</a>.</p>\n<p>To create a service account private key:</p>\n<ol>\n<li>Go to the directory your service account belongs to.</li>\n<li>Click the <em>Service accounts</em> tab.</li>\n<li>Select a service account and click the row with its name.</li>\n<li>Click <em>Create new key</em> in the left pane. Select <em>Create authorized key</em>.</li>\n<li>Specify the key description to make it easier to find in the control console later.</li>\n<li>Save the identifier and the private key.</li>\n</ol>\n<p class='warn'>You can also user other methods to create a service account private key for Yandex ASR/TTS (learn more <a href=https://cloud.yandex.ru/docs/iam/concepts/authorization/key target=\"_blank\" rel=\"noopener noreferrer\">here</a>).</p>\n<p>Service account private key format:</p>\n<div class=\"gatsby-highlight\" data-language=\"example\"><pre class=\"language-example\"><code class=\"language-example\">-----BEGIN PRIVATE KEY-----EXAMPLE1234567G9w0BAQEFAASCBKgwggS\ncmQxJjAkBgNVBAoTHVByb2dyZXNzIFNvZnR3YXJlIENvcnBvcmF0aW9uMSAwHgYD\nVQQDDBcqLmF3cy10ZXN0LnByb2dyZXNzLmNvbTCCASIwDQYJKoZIhvcNAQEBBQAD\n...\nEXAMPLE1234567YWxzaGEyZzIuY3JsMIGgBggrBgEFBQcBAQSBkzCBkDBNBggrBgEF\nBQcwAoZBaHR0cDovL3NlY3VyZS5nbG9iYWxzaWduLmNvbS9jYWNlcnQvZ3Nvcmdh\nz3P668YfhUbKdRF6S42Cg6zn-----END PRIVATE KEY-----</code></pre></div>\n</br>\n<h4>Service account and public key identifiers</h4>\n<ol>\n<li>Go to the directory your service account belongs to.</li>\n<li>Click the <em>Service accounts</em> tab.</li>\n<li>Select a service account and click the row with its name.</li>\n<li>You can find your service account ID under <em>Overview</em>. Service account identifier format:</li>\n</ol>\n<div class=\"gatsby-highlight\" data-language=\"example\"><pre class=\"language-example\"><code class=\"language-example\">example0mjt06siua65usm</code></pre></div>\n<ol start=\"5\">\n<li>You can find your public key ID under <em>Authorized keys</em> next to the name of the previously created key. Public key identifier format:</li>\n</ol>\n<div class=\"gatsby-highlight\" data-language=\"example\"><pre class=\"language-example\"><code class=\"language-example\">example0mjt06siua65usm</code></pre></div>\n</br>\n<h4>Directory identifier</h4>\n<ol>\n<li>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.</li>\n<li>Get the directory identifier from the directory page URL in the control console:</li>\n</ol>\n<div class=\"gatsby-highlight\" data-language=\"text\"><pre class=\"language-text\"><code class=\"language-text\">https://console.cloud.yandex.ru/folders/example1234567</code></pre></div>\n<p><code class=\"language-text\">example1234567</code> is the directory ID.</p>\n</br>\n<p>Now fill out the fields in the connection settings when you create a channel in JAICP and click <em>Save</em>.</p>\n</br>\n<h3>How to connect Tinkoff ASR/TTS</h3>\n<p>You need to create an authorization token to connect Tinkoff ASR/TTS. Learn more about creating an authorization token in the <a href=\"https://voicekit.tinkoff.ru/docs/\" target=\"_blank\" rel=\"noopener noreferrer\">Tinkoff Voicekit documentation</a></p>\n<p>Specify <em>API_KEY</em> for <em>API key</em> and <em>SECRET_KEY</em> for <em>Secret key</em> in the connection settings when you create a channel in JAICP. Click <em>Save</em>.</p>","frontmatter":{"title":"","description":null},"headings":[{"value":"Create connection"}]}},"pageContext":{"slug":"/docs/en/telephony/own_telephony/","previous":{"fields":{"slug":"/docs/en/telephony/recognition_synthesis_settings/"},"frontmatter":{"title":"","description":null}},"next":{"fields":{"slug":"/docs/en/telephony/lists_of_numbers/"},"frontmatter":{"title":"","description":null}}}},
    "staticQueryHashes": ["1209419333"]}