Set Language When Connecting To A Web Socket
#
Getting StartedThis snipet shows how to use languages other than English and also how to set the timezone to the timezone in which the conversation is taking place.
#
Utilising other languagesJavascript SDK allows you to work with audio from multiple different languages. You can find which language the Streaming API supports here.
caution
- If the language is not specified then
en-US
(English - United States) is used as the default language. - Insights like Action items, follow-ups, topics, etc are detected for English language only.
#
Code Snippet#
Configuration SnippetHere you set the language key to Japanese: "languages": ["ja-JP"],
.
This configuration will be passed to the startRealtimeRequest
function during initialization, which you can see in the full code snippet below:
#
Full Snippet#
TestingCreate a javascript file named app.js
and copy this code into the file. Fill in the placeholder values with the proper values. Use npm to install the required libraries: npm install symbl-node
. Now in the terminal run
If successful you should receive a response in the console.
info
If you have any questions or concerns about our API, you can join our Support Slack or send us an email at developer@symbl.ai