Connect to a PSTN connection to get Speech to Text and AI Insights
#
Connect to a callThe following code example shows how you can connect the Telephony API to your cell phone or any other type of phone number using PSTN (Currently, only US phone numbers work). Making a phone call is also the quickest way to test Symbl’s Telephony API. It can make an outbound call to a phone number using a traditional public switched telephony network (PSTN).
Code Example#
info
The Symbl SDK (Node.js) snippet must be run using Node.js, while the Native Javascript snippet can be run in your web browser.
- cURL
- Symbl SDK (Node.js)
- Native Javascript
- Python 3
#
TestingOpen up your shell terminal and copy in the command. Replace the placeholder values with the proper values and hit enter.
If successful you should receive a response in the console.
#
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.
#
TestingOpen up your browser's deveolopment environment and copy this code into the console. Replace the placeholder values with the proper values.
If successful you should receive a response in the console.
#
TestingCreate a python file named app.py
and copy this code into the file. Fill in the placeholder values with the proper values. Use Python PIP (learn how to install here) to install Python Requests (pip install requests
). In your termninal, now 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