- Notifications
You must be signed in to change notification settings - Fork0
License
deepgram-devs/deepgram-demos-flux-streaming-transcription
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A real-time streaming transcription demo using Deepgram's Flux model. This demo streams live audio from BBC World Service and provides real-time transcription with word-level confidence scoring and color-coded output.
🔑 To access the Deepgram API you will need afree Deepgram API Key.
Before running this demo, make sure you have:
- Python 3.8+ installed on your system
- ffmpeg installed for audio conversion
- macOS:
brew install ffmpeg - Ubuntu/Debian:
sudo apt update && sudo apt install ffmpeg - Windows: Download fromffmpeg.org or use
winget install ffmpeg
- macOS:
Clone the repository:
git clone https://github.com/deepgram/deepgram-demos-flux-streaming-transcription.gitcd deepgram-demos-flux-streaming-transcriptionInstall Python dependencies:
pip install deepgram-sdk python-dotenv aiohttp ffmpeg-python
Set up your environment variables:
Create a
.envfile in the project root:echo"DEEPGRAM_API_KEY=your_deepgram_api_key_here"> .env
Replace
your_deepgram_api_key_herewith your actual Deepgram API key.
Start the streaming transcription:
python main.py
The demo will:
- Connect to Deepgram's Flux streaming service
- Stream live audio from BBC World Service
- Convert the audio stream to the correct format using ffmpeg
- Display real-time transcription with:
- 🎤 Main transcript text
- 📝 Word-level confidence scores with color coding:
To stop the demo, pressCtrl+C.
You can learn more about Deepgram APIs atdevelopers.deepgram.com.
We love to hear from you! If you have questions:
About
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
