Stream speech to text over WebSocket
AsyncAPI specification for the Telnyx Speech-to-Text WebSocket endpoint. Real-time speech transcription by streaming audio and receiving transcript frames.
Supported Engines
Azure- Microsoft Azure Speech ServicesDeepgram- Deepgram Nova and Flux modelsGoogle- Google Cloud Speech-to-TextTelnyx- Telnyx native transcription (OpenAI Whisper models)xAI- xAI Grok STTAssemblyAI- AssemblyAI Universal-Streaming (backed by Universal-3.5 Pro Realtime)Speechmatics- Speechmatics real-time transcriptionSoniox- Soniox real-time transcriptionParakeet- Self-hosted NVIDIA Parakeet multilingual transcriptionReson8- Reson8 turn-based multilingual transcriptionCohere- Self-hosted Cohere Arabic/English transcription (batch, no auto-detect)
Connection Flow
- Open WebSocket connection to
wss://api.telnyx.com/v2/speech-to-text/transcriptionwith query parameters. - Send binary audio frames (mp3, wav, linear16, or linear32 format, per input_format).
- Receive JSON transcript frames with
transcript,is_final, andconfidencefields. - Close connection when done.
Authentication
Requires authentication via a Bearer token (Telnyx API v2 key).
WSS