Sometimes you need to pass different audio codecs when passing the audio. This example shows how to pass them. The codecs currently supported are:
We recommend using OPUS as compared to other codecs because it provides the most flexibility in terms of audio transportation and also has packet retransmission mechanisms like FEC which work well, especially in low-bandwidth scenarios.
Throughout the documentation you'll find various references to these variable names, which you will have to replace with your values:
|The application ID you get from the home page of the platform.|
|The application secret you get from the home page of the platform.|
|The JWT you get after authentication with Sybml.|
|A phone number that you want the API to connect to. Be sure to include the country code.|
|The email address you wish to send the summary email to.|
This example runs on node server, so we will use
.env file and add your
Let's start by initialising
Now after we initialized, we need to start the connection by running
So how do you pass custom codecs? It's as simple as passing custom audio config
If you have a requirement to use a codec not included in the ones above or have any other queries, please drop an e-mail to email@example.com.
If successful you should receive a response in the console.