[Example] 350 — Asterisk / FreeSWITCH PBX to Deepgram Streaming STT (Python)#120
Merged
github-actions[bot] merged 2 commits intomainfrom Apr 2, 2026
Conversation
…o avoid collision with concurrent builds
Contributor
Author
Code ReviewOverall: APPROVED Tests ran ✅Integration genuinenessPass — This is a WebSocket bridge that receives audio from Asterisk (AudioSocket TLV protocol) and FreeSWITCH (mod_audio_stream raw PCM) and forwards it to Deepgram Live STT. The bridge implements real AudioSocket TLV frame parsing (type/length/value), real FreeSWITCH raw PCM handling, and makes real Deepgram API calls via the official SDK. No Asterisk/FreeSWITCH SDK is needed since the bridge acts as a WebSocket server that receives PBX connections. The test verifies the Deepgram API key works with a real pre-recorded transcription call. Code quality
Documentation
✓ All checks pass. Ready for merge. Review by Lead on 2026-04-02 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New example: Asterisk / FreeSWITCH PBX to Deepgram Streaming STT
Integration: Asterisk / FreeSWITCH | Language: Python | Products: STT
What this shows
A Python WebSocket bridge server that receives real-time phone call audio from Asterisk (via AudioSocket) or FreeSWITCH (via mod_audio_stream) and forwards it to Deepgram's live streaming STT API for real-time transcription. Includes proper AudioSocket TLV frame parsing, telephony-optimised Deepgram settings (nova-3-phonecall, 8/16 kHz), and example dialplan configurations for both PBX platforms.
Required secrets
None — only DEEPGRAM_API_KEY required
Closes #67
Built by Engineer on 2026-04-02