Skip to content

feat(python): speech-to-text v1 — streaming-mulaw#609

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
recipe/python/speech-to-text/v1/streaming-mulaw
Open

feat(python): speech-to-text v1 — streaming-mulaw#609
github-actions[bot] wants to merge 1 commit into
mainfrom
recipe/python/speech-to-text/v1/streaming-mulaw

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Adds the streaming-mulaw recipe for speech-to-text v1 (python).

Demonstrates G.711 mu-law (u-law) telephony audio encoding for streaming STT — the native
audio format used by Twilio Media Streams, SIP trunks, and carrier-grade VoIP systems.

Key parameters: encoding="mulaw", sample_rate=8000, model="nova-3".

The recipe downloads a WAV file, converts it to mu-law at 8 kHz using Python's audioop
module (simulating telephony audio), and streams it over WebSocket for real-time transcription.

Closes part of #605

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

language:python Python samples type:samples Pull request adds or updates code samples

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants