How to integrate live transcription API with Twilio to transcribe calls in real time
Published on Sep 28, 2023
Twilio, used by hundreds of thousands of businesses and more than ten million developers worldwide, can now integrate with our live transcription API. The integration makes it easier for users to natively transcribe any phone call in real time while using Twilio. With transcribed text at your disposal, you'll then be able to analyze, archive, and act upon voice data more effectively.
Below, you’ll find a step-by-step guide on setting up the Twilio integration with Gladia API in JavaScript for free.
What can you do with Twilio integration?
Any developer can use this integration to transcribe phone calls in real-time.
How to implement Twilio + Gladia real-time transcription integration
Step 1: Set up your Gladia account
If you haven't already, sign up for our Speech-to-Text API at app.gladia.io and obtain your API key.
Step 2: Create and parametrize your Twilio account
Get a phone number, following the first step of the main page to connect to your Twilio account.
On the left panel Develop > United States (US1) > Phone Numbers > Manage > Active numbers.
Click on the phone number you just created.
In 'Configure' panel, 'Voice Configuration' section, 'A call comes in' field, choose 'Webhook' with URL = 'http://[your-id-address]:[your-app-port-number]' and HTTP = 'HTTP POST'
Step 3: Configure your server and install dependencies
In .env file, add GLADIA_API_KEY var with your API key obtained from Gladia’s website and PORT var, the port you used to configure your phone number in above section (default is 8080)
Feel free to check out the video version of the tutorial for a step-by-step walkthrough with one of our software engineers, Antoine.
We hope you enjoyed this how-to tutorial! Given how much audio data still goes to wasted, we’re always curious to explore the many ways in which transcription tech can be used to remedy that. Let us know if you end up using our API with Twilio, Discord, or other, we’d love to hear from you.
About Gladia
At Gladia, we built an optimized version of Whisper in the form of an API, adapted to real-life professional use cases and distinguished by exceptional accuracy, speed, extended multilingual capabilities and state-of-the-art features, including speaker diarization and word-level timestamps.
Contact us
Your request has been registered
A problem occurred while submitting the form.
Read more
Speech-To-Text
STT API Benchmarks: How to measure accuracy, latency, and real-world Performance
Every product that depends on voice input lives or dies by its speech-to-text performance. Whether you're enriching CRM data from support calls, powering live captions in meetings, or triggering downstream actions via LLMs, transcription accuracy and speed aren’t just nice-to-haves. They’re essential to product functionality. If your STT engine stalls on latency or mistranscribes a customer’s request, it can break automations, derail user experiences, and create costly manual work downstream.
As the landscape of speech-to-text APIs continues to evolve—with growing demands around latency, language support, and compliance—it’s more important than ever to ensure that your setup aligns with your product’s direction.
Gladia and Pipecat partner to push the boundaries of real-time voice AI
We’re thrilled to announce a strategic partnership between Gladia and Daily, the team behind Pipecat, aimed at revolutionizing real-time conversational AI. This collaboration combines our cutting-edge audio intelligence capabilities with their flexible 100% open-source framework, empowering developers to create more dynamic, multilingual, and context-aware voice AI applications.