Skip to main content
For applications requiring the lowest latency, use the real-time WebSocket API. This provides streaming transcription with incremental results.
The server uses Voice Activity Detection (VAD) to automatically segment speech. You can tune VAD parameters for your audio characteristics. See the Voice activity detection guide for configuration details and common presets.
The WebSocket API is currently only available via raw WebSocket connections. SDK support coming soon.

Establish a connection

Connect to: wss://api.together.ai/v1/realtime?model={model}&input_audio_format=pcm_s16le_16000 Headers:

Query parameters

Client-to-server messages

Append audio to buffer

Send audio data in base64-encoded PCM format.

Commit audio buffer

Forces transcription of any remaining audio in the server-side buffer.

Server-to-client messages

Delta events (intermediate results)

Delta events are intermediate transcriptions. The model is still processing and may revise the output. Each delta message overrides the previous delta.

Completed events (final results)

Completed events are final transcriptions. The model is confident about this text. The next delta event continues from where this completed.

Real-time example