Speech Recognition with Vonage and Python
In this tutorial, we learn how to transcribe voice calls using Python with the help of Vonage and Deepgram. We first set up a virtual environment for the project and install necessary dependencies such as deepgram-sdk, vonage, python-dotenv, Flask, pysondb, etc. Then, we create an application in the Vonage API Dashboard and store the required environment variables in a .env file. We implement endpoints in our Python script for handling answer calls, recording calls, transcribing audio using Deepgram's speech-to-text feature, and displaying the transcript on a webpage. Finally, we make a phone call and use another non-Vonage phone to initiate a conversation with the provided Vonage number. After hanging up, the transcript appears in the browser when navigating to http://127.0.0.1:5000/transcribe.
Company
Deepgram
Date published
May 9, 2022
Author(s)
Tonya Sims
Word count
1266
Hacker News points
None found.
Language
English