Home / Companies / Deepgram / Blog / Post Details
Content Deep Dive

Live Transcription With Python and Flask

Blog post from Deepgram

Post Details
Company
Date Published
Author
Tonya Sims
Word Count
1,323
Company Posts That Month
32
Language
English
Hacker News Points
-
Post removed?
No
Summary

In this tutorial, we learn how to create a live voice-to-text transcription application using Python and Flask 2.0 with the help of Deepgram's AI speech recognition technology. The project involves setting up a virtual environment, installing necessary dependencies like Flask, Deepgram SDK, dotenv library, and aiohttp-wsgi. We then create a basic Flask application that renders an HTML page for live transcription. Next, we add the Deepgram API key to our project by creating a .env file and storing it in the GitHub repository's .gitignore file. The application uses JavaScript to access microphone data from the browser and establishes WebSocket connections between the Python server holding the Flask application and the client (browser). We also create a WebSocket connection between our central Flask server and Deepgram for real-time transcription. Finally, we run the application and start getting real-time transcriptions on the localhost. The complete code for this project is available on Github with instructions to run it.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Real-time 4 1,262 387 113 +28%
Serverless 1 585 126 56 -21%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.