Text to Speech vs Text to Dialogue WebSockets
This feature is currently offered as a Beta Service. By enabling access, you agree to the Beta Services Addendum and acknowledge that usage will be billed at $70/1M chars starting on your next billing date, unless otherwise agreed with your account owner.
ElevenLabs exposes two different WebSocket products for streaming synthesized speech. They solve different problems, accept different message shapes, and target different models.
Which WebSocket should I use?
Use the Text to Speech (TTS) WebSocket when you stream plain text for one voice per connection (the voice is fixed in the URL) and you want non-v3 models such as Flash or Multilingual v2, optional SSML, chunk schedules, or the multi-context variant for agent-style interruption handling.
Use the Text to Dialogue (TTD) WebSocket when you need Eleven v3 dialogue behavior: expressive delivery, per-chunk voice_id, turn boundaries (new_turn), and the same dialogue-oriented buffering used for v3 on the server. Access may require workspace enablement in addition to normal Text to Speech permissions.
For batch or HTTP streaming dialogue (full request in one call), use Create dialogue or Stream dialogue instead of a WebSocket.
Comparison
When the TTS WebSocket is the better fit
- You already integrate Flash or Multilingual v2 for latency or language coverage.
- You want one narrator voice per connection and a simple text-per-frame protocol.
- You need multi-context orchestration for barge-in and parallel utterances (multi-context guide).
See Generate audio in real-time for a full walkthrough of the TTS WebSocket.
When the TTD WebSocket is the better fit
- You target Eleven v3 dialogue (expressive tags, conversational pacing, multi-speaker lines).
- You stream scripted or LLM-generated dialogue where the speaking voice can change per line without opening a new connection.
- You want WebSocket-shaped incremental input with v3-only dialogue generation on the server.
For a hands-on walkthrough, use Realtime Text to Dialogue. Protocol details are in the API reference.
Related guides
Connect, register voices, stream inputs, and save audio from the TTD WebSocket.
Step-by-step connection and messaging for the standard TTS WebSocket.
Multiple TTS contexts on one connection for agent workflows.
HTTP request examples for multi-voice dialogue.
Product-oriented overview of dialogue generation.