- Real-Time Transcription
- Real-Time Insights
- Real-Time Messages
- Real-Time Intents
The below example shows how to achieve this:
Add the above lines to import and initialize the SDK. Replace the
APP_SECRET in the code.
You can find the them by signing up on the Symbl Developer Platform
The above snippet makes a phone call, by calling the
startEndpoint with type set to
pstn and a valid US/Canada Phone Number.
You can also call in via type
sip as well with the steps below remaining the same.
The above snippet calls the
subscribeToConnection which requires the
connectionId of the call and a callback function to be passed as the second argument which will be invoked when any of the above events are available to be consumed.
data received will contain
type of the event. It can be one of
Lets go over them one by one:
transcript_response: This contains the real-time transcription data which is availabe as soon as its detected.
message_response: This will contain the array of the transcripts of all the speakers which will be logically separated by punctuations or the speakers if Active Speaker Events are pushed.
insight_response: This will contain the array of all the insights detected in real-time. These can be Action Items or questions.
There is also a 4th type of event which is
intent_response covered in a separate example:
To end the call gracefully, we call the
stopEndpoint call to stop the call.
The code snippet above simply stops the call after 60 seconds.
The complete code for the example above can be found here.
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.