Skip to content

Add Telnyx media streaming Python example#189

Draft
a692570 wants to merge 1 commit into
moonshine-ai:mainfrom
a692570:codex/add-telnyx-media-streaming-example
Draft

Add Telnyx media streaming Python example#189
a692570 wants to merge 1 commit into
moonshine-ai:mainfrom
a692570:codex/add-telnyx-media-streaming-example

Conversation

@a692570

@a692570 a692570 commented Jun 3, 2026

Copy link
Copy Markdown

Summary

  • adds a Python Telnyx Media Streaming WebSocket example
  • decodes L16, PCMU, and PCMA media payloads into float samples for Moonshine streaming transcription
  • documents how to start a Telnyx stream with L16 and lists the example in the root README

Testing

  • PYTHONPATH=python/src /tmp/moonshine-pr-venv311/bin/python examples/python/telnyx-media-streaming/telnyx_media_streaming.py --help
  • /tmp/moonshine-pr-venv311/bin/python -m py_compile examples/python/telnyx-media-streaming/telnyx_media_streaming.py
  • decoder checks for L16 conversion and Telnyx track filtering
  • git diff --check
  • secret scan over the diff found no matches

Notes

Telnyx Media Streaming sends WebSocket start and media events with media_format metadata and base64 audio payloads. Reference: https://developers.telnyx.com/docs/voice/programmable-voice/media-streaming

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant