Proper support for ElevenLabs "eleven_v3" in "livekit-plugins-elevenlabs" with ETA
Feature Type
Would make my life easier
Feature Description
Hi LiveKit team,
First of all, thank you for the great work on LiveKit Agents and the ElevenLabs plugin.
I’m opening this issue to request support for the ElevenLabs eleven_v3 TTS model in livekit-plugins-elevenlabs, and to ask if you can share a rough ETA for when this might land.
When I configure TTS in my agent and run with livekit-plugins-elevenlabs==1.4.1, I consistently get errors like:
aiohttp.client_exceptions.WSServerHandshakeError: 403, message='Invalid response status', url='wss://api.elevenlabs.io/v1/text-to-speech/.../multi-stream-input?model_id=eleven_v3&...'
and
livekit.agents._exceptions.APIConnectionError: could not connect to ElevenLabs (body=None, retryable=True)
The plugin is using the multi-stream-input WebSocket endpoint:
wss://api.elevenlabs.io/v1/text-to-speech/{voice_id}/multi-stream-input?model_id=eleven_v3&...
However, according to ElevenLabs’ documentation:
- WebSockets are not available for the
eleven_v3model. - Multi‑context WebSockets are explicitly not supported for
eleven_v3.
This matches what I see in practice: the connection attempt is rejected with a 403.
What I’ve Tried / Workarounds
I saw this issue ticket: https://github.com/livekit/agents/issues/3904
Overriding tts_node and using session.tts.synthesize(...) (non‑streaming) can make eleven_v3 work, but:
- This introduces significant latency for longer responses.
- It’s not ideal for a real‑time, low‑latency voice assistant use‑case in production.
It would be helpful if the plugin could
- Officially support
eleven_v3, ideally:- Using the most appropriate ElevenLabs API mechanism (e.g. stream / non‑WebSocket streaming) instead of multi-stream-input, or
- Providing a clean, documented way to opt into a non‑WebSocket path for eleven_v3 while keeping the rest of the Agents pipeline intact.
- Handle unsupported WebSocket models more gracefully, e.g.:
- Detect when a model does not support multi-stream-input and automatically fall back to a supported streaming or non‑streaming endpoint, or
- Provide clear configuration options / flags for users to choose the correct mode per model.
- If possible, share a rough ETA for when
eleven_v3support might be available in a stable release, so we can plan our rollout of ElevenLabs voices accordingly.
Thanks a lot for your time and for all the work on this ecosystem!
Workarounds / Alternatives
No response
Additional Context
No response
hi, thank you for the request! really appreciate the details you provided, we will look into this and give an update
The simplest workaround is to override the class behavior so it routes requests to the /stream endpoint instead of multi-stream-input that supports v3
class ElevenLabsHTTPOnlyTTS(elevenlabs.TTS): def __init__(self, **kwargs): super().__init__(**kwargs) self._capabilities = tts_module.TTSCapabilities( streaming=False, aligned_transcript=False, )
I've implemented support for eleven_v3 in #4936
The plugin now automatically detects when eleven_v3 is used and routes to HTTP streaming instead of WebSocket. No configuration needed:
tts = elevenlabs.TTS(model="eleven_v3")
stream = tts.stream() # Automatically works
Aligned transcripts are also supported via the /stream/with-timestamps endpoint.
Regarding latency - in testing, TTS TTFB is around 1.3-1.9s compared to ~250-300ms for WebSocket models. This is because HTTP streaming requires buffering all text before sending the request, whereas WebSocket supports incremental input. It's an API limitation since eleven_v3 doesn't support WebSocket.
The implementation streams audio chunks back as they're generated, so it's better than the non-streaming workaround you mentioned.
Let me know if you have any feedback on the implementation
"1.3-1.9s" -- yikes! Do we know why ElevenLabs doesn't have WebSocket for their best TTS model?
Eleven v3 is still in Alpha and its architecture generates speech with full-line context rather than just next/previous tokens. That's why WebSocket support isn't available yet for their best model , even the regular HTTP endpoint doesn't fully support these advanced params. They're still stabilizing the output, but it should come eventually.
@hvmzack It is out of alpha as of this month: https://elevenlabs.io/blog/eleven-v3-is-now-generally-available
Easiest way
You can add the following wrapper to the agent's code:
from typing import Any
from livekit.plugins import elevenlabs
from livekit.agents import tts as tts_module
class ElevenLabsHTTPTTS(elevenlabs.TTS):
def __init__(self, **kwargs: Any) -> None:
super().__init__(**kwargs)
self._capabilities = tts_module.TTSCapabilities(
streaming=False,
aligned_transcript=False,
)
And then, instead of the plugin, specify it:
super().__init__(
llm=openai.realtime.RealtimeModel(
model="gpt-4o-realtime-preview",
voice="coral",
temperature=0.8,
modalities=["text"],
input_audio_transcription=None,
turn_detection=None,
), # 0.3 sec
# tts=elevenlabs.TTS(
# model="eleven_flash_v2_5",
# voice_id="<your_voice_id>",
# ), # 0.2 sec
tts=ElevenLabsHTTPTTS(
model="eleven_v3",
voice_id="<your_voice_id>",
), # 0.7 sec
)
In my tests, the TTFB was ~0.7 seconds.
Any news on when this model will be added exactly to livekit?
There is this model called eleven_v3_conversational which is used in ElevenLabs Agent. Can't we use this in Livekit? Is it like a ElevenLabs specific thing?
I tried it but I got this:
livekit.agents._exceptions.APIError: LiveKit Inference TTS returned error: {"type":"error","code":"INVALID_DATA","data":"failed to create provider instance for session 1303b840-955a-47ef-82c3-e25aff5cf1d1: TTS model not found in list: elevenlabs/eleven_v3_conversational: model not found"}
I see it was requested here too: https://github.com/livekit/agents/issues/4809 Can we have it please? T-T
the model name is eleven_v3 not eleven_v3_conversational that is exposed our their TTS API
Any news about this?
v3 seems to be working fine with decent latencies inside elevenlabs platform so I guess it's just a matter of them adding it to the websocket endpoint
Hey team, is there any update? Currently impacted as I can't implement v3 in local language. Thanks!
Hey any update on this this, we wanted to try out eleven_v3_conversational but currently there is no native integration for it
Currently, the 11labs v3 model seems to support WebSocket access, specifically using the wss://api.elevenlabs.io/v1/text-to-dialogue/stream-input interface instead of the original WebSocket interface. This "text-to-dialogue" interface supports both eleven_v3_conversational and eleven_v3. Does the author plan to integrate this feature?
hi everyone, thank you all for the requests and interest! the pr has been approved and merged and will be in the next release soon :)