Enabling diarization
Diarization is available on the WebSocket streaming endpoint. Set both fields intranscribeConfig:
Set
includeWordTimestamps together with enableSpeakerDiarization — speaker labels are attached to word timestamps, not to the turn-level transcript.Reading speaker labels
Each word inwordTimestamps carries a speaker identifier:
Numbering varies by provider: AssemblyAI starts at 0, Soniox at 1.
speaker value. Words may occasionally arrive without a label; treat those as unattributed rather than assuming a speaker.
Model support
| Model | Speaker diarization |
|---|---|
assemblyai/u3-rt-pro | |
assemblyai/universal-streaming-english | |
assemblyai/universal-streaming-multilingual | |
soniox/stt-rt-v4 | |
soniox/stt-rt-v5 | |
deepgram/flux-general-en | |
deepgram/flux-general-multi | |
inworld/inworld-stt-1 | Coming soon |
assemblyai/whisper-rt | |
groq/whisper-large-v3 |
Next steps
WebSocket API Reference
Full message and configuration schema for the streaming endpoint.
Turn Detection
Detect when a speaker has finished talking.