/plushcap/analysis/deepgram/transcribe-phone-calls-with-twilio-functions-and-deepgram

Transcribe Phone Calls with Twilio Functions and Deepgram

What's this blog post about?

In this tutorial, learn how to transcribe phone calls using Twilio Functions and Deepgram. First, set up a Twilio account with a phone number that has Voice capabilities. Next, create a new service in the Twilio Console and add @deepgram/sdk as a dependency. Add your Deepgram API Key as an environment variable. Create two functions: /inbound and /transcribe. The /inbound function will prompt callers to speak after the beep and record their message. When the call ends, data is sent to /transcribe. In the /transcribe function, use Deepgram's Node.js SDK to generate a transcription of the recording. Then, send the transcript to the caller via SMS using Twilio Client. Finally, deploy both functions and test by calling your Twilio number, speaking after the beep, and hanging up. You should receive an SMS message with the transcribed text shortly afterward.

Company
Deepgram

Date published
Aug. 29, 2022

Author(s)
Kevin Lewis

Word count
962

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.