f
hello
t
Thanks for reaching out, Baymurat. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hi there! How can I help you today? I'm here to make sure you get the support you need.
f
ntSession` ->
TranscriptSynchronizer
->
RoomIO
2025-09-26 141847,853 - DEBUG livekit.agents - using audio io:
RoomIO
->
AgentSession
->
TranscriptSynchronizer
->
RoomIO
2025-09-26 141847 [ DEBUG] livekit.agents: using transcript io:
AgentSession
->
TranscriptSynchronizer
->
RoomIO
2025-09-26 141847,853 - DEBUG livekit.agents - using transcript io:
AgentSession
->
TranscriptSynchronizer
->
RoomIO
2025-09-26 141847 [ INFO] __mp_main__: 🔊 Using say method for greeting 2025-09-26 141847,853 - INFO __mp_main__ - 🔊 Using say method for greeting 2025-09-26 141847 [ DEBUG] livekit.agents: http_session(): creating a new httpclient ctx 2025-09-26 141847,858 - DEBUG livekit.agents - http_session(): creating a new httpclient ctx 2025-09-26 141848 [ WARNING] livekit.agents: failed to synthesize speech, retrying in 0.1s Traceback (most recent call last): File "/opt/anaconda3/lib/python3.12/site-packages/livekit/agents/tts/tts.py", line 357, in _main_task await self._run(output_emitter) File "/opt/anaconda3/lib/python3.12/site-packages/livekit/plugins/elevenlabs/tts.py", line 337, in _run raise APIStatusError( livekit.agents._exceptions.APIStatusError: Invalid response status (status_code=403, request_id=5fb4e7882de1, body=None, retryable=False) 2025-09-26 141848,413 - WARNING livekit.agents - failed to synthesize speech, retrying in 0.1s {"tts": "livekit.plugins.elevenlabs.tts.TTS", "attempt": 1, "streamed": true} Traceback (most recent call last): File "/opt/anaconda3/lib/python3.12/site-packages/livekit/agents/tts/tts.py", line 357, in _main_task await self._run(output_emitter) File "/opt/anaconda3/lib/python3.12/site-packages/livekit/plugins/elevenlabs/tts.py", line 337, in _run raise APIStatusError( livekit.agents._exceptions.APIStatusError: Invalid response status (status_code=403, request_id=5fb4e7882de1, body=None, retryable=False) 2025-09-26 141848 [ WARNING] livekit.agents: failed to synthesize speech, retrying in 2.0s Traceback (most recent call last): File "/opt/anaconda3/lib/python3.12/site-packages/livekit/agents/tts/tts.py", line 368, in _main_task raise APIError(f"no audio frames were pushed for text: {self._pushed_text}") livekit.agents._exceptions.APIError: no audio frames were pushed for text: Kumusta (body=None, retryable=True) 2025-09-26 141848,516 - WARNING livekit.agents - failed to synthesize speech, retrying in 2.0s {"tts": "livekit.plugins.elevenlabs.tts.TTS", "attempt": 2, "streamed": true} Traceback (most recent call last): File "/opt/anaconda3/lib/python3.12/site-packages/livekit/agents/tts/tts.py", line 368, in _main_task raise APIError(f"no audio frames were pushed for text: {self._pushed_text}") livekit.agents._exceptions.APIError: no audio frames were pushed for text: Kumusta (body=None, retryable=True) 2025-09-26 141850 [ WARNING] livekit.agents: failed to synthesize speech, retrying in 2.0s Traceback (most recent call last): File "/opt/anaconda3/lib/python3.12/site-packages/livekit/agents/tts/tts.py", line 368, in _main_task raise APIError(f"no audio frames were pushed for text: {self._pushed_text}") livekit.agents._exceptions.APIError: no audio frames were pushed for text: Kumusta (body=None, retryable=True) 2025-09-26 141850,519 - WARNING livekit.agents - failed to synthesize speech, retrying in 2.0s {"tts": "livekit.plugins.elevenlabs.tts.TTS", "attempt": 3, "streamed": true} Traceback (most recent call last): File "/opt/anaconda3/lib/python3.12/site-packages/livekit/agents/tts/tts.py", line 368, in _main_task raise APIError(f"no audio frames were pushed for text: {self._pushed_text}") livekit.agents._exceptions.APIError: no audio frames were pushed for text: Kumusta (body=None, retryable=True) 2025-09-26 141852 [ ERROR] livekit.agents: Error in _tts_inference_task Traceback (most recent call last): File "/opt/anaconda3/lib/python3.12/site-packages/livekit/agents/tts/tts.py", line 529, in anext val = await self._event_aiter.__anext__() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ StopAsyncIteration During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/anaconda3/lib/python3.12/site-packages/livekit/agents/utils/log.py", line 16, in async_fn_logs return await fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/anaconda3/lib/python3.12/site-packages/opentelemetry/util/_decorator.py", line 71, in async_wrapper return await func(*args, **kwargs) # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/anaconda3/lib/python3.12/site-packages/livekit/agents/voice/generation.py", line 212, in _tts_inference_task async for audio_frame in tts_node: File "/opt/anaconda3/lib/python3.12/site-packages/livekit/agents/voice/agent.py", line 412, in tts_node async for ev in stream: File "/opt/anaconda3/lib/python3.12/site-packages/livekit/agents/tts/tts.py", line 532, in anext raise exc # noqa: B904 ^^^^^^^^^ File "/opt/anaconda3/lib/python3.12/site-packages/opentelemetry/util/_decorator.py", line 71, in async_wrapper return await func(*args, **kwargs) # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/anaconda3/lib/python3.12/site-packages/livekit/agents/tts/tts.py", line 368, in _main_task raise APIError(f"no audio frames were pushed for text: {self._pushed_text}") livekit.agents._exceptions.APIError: no audio frames were pushed for text: Kumusta (body=None, retryable=True) 2025-09-26 141852,529 - ERROR livekit.agents - Error in _tts_inference_task Traceback (most recent call last): File "/opt/anaconda3/lib/python3.12/site-packages/livekit/agents/tts/tts.py", line 529, in anext val = await self._event_aiter.__anext__() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ StopAsyncIteration During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/anaconda3/lib/python3.12/site-packages/livekit/agents/utils/log.py", line 16, in async_fn_logs return await fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/anaconda3/lib/python3.12/site-packages/opentelemetry/util/_decorator.py", line 71, in async_wrapper return await func(*args, **kwargs) # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/anaconda3/lib/python3.12/site-packages/livekit/agents/voice/generation.py", line 212, in _tts_inference_task async for audio_frame in tts_node: File "/opt/anaconda3/lib/python3.12/site-packages/livekit/agents/voice/agent.py", line 412, in tts_node async for ev in stream: File "/opt/anaconda3/lib/python3.12/site-packages/livekit/agents/tts/tts.py", line 532, in anext raise exc # noqa: B904 ^^^^^^^^^ File "/opt/anaconda3/lib/python3.12/site-packages/opentelemetry/util/_decorator.py", line 71, in async_wrapper return await func(*args, **kwargs) # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/anaconda3/lib/python3.12/site-packages/livekit/agents/tts/tts.py", line 368, in _main_task raise APIError(f"no audio frames were pushed for text: {self._pushed_text}") livekit.agents._exceptions.APIError: no audio frames were pushed for text: Kumusta (body=None, retryable=True) I am having this error while using eleven_v3 model
t
It looks like the error you're experiencing with the ElevenLabs model in LiveKit might be due to an invalid model identifier or a configuration hiccup. The correct model name to use is
eleven_turbo_v2_5
. If you’re using something like
eleven_v3
, that could be causing the API errors. Here’s a friendly checklist to help you get back on track: 1. Double-check that you’re using the right model identifier:
eleven_turbo_v2_5
. 2. Make sure your ElevenLabs API key is valid and set up correctly. You can provide it either programmatically or by setting the
ELEVEN_API_KEY
environment variable. 3. It’s a good idea to wrap your synthesis calls in a try-catch block to catch any errors smoothly. For example:
Copy code
from livekit.plugins import elevenlabs

tts = elevenlabs.TTS(api_key="your_api_key", model="eleven_turbo_v2_5")
try:
    chunked_stream = tts.synthesize("Hello, world!")
    async for chunk in chunked_stream:
        # Process audio chunk
        pass
except elevenlabs.APIStatusError as e:
    print(f"API returned an error: {e.message}, status: {e.status_code}")
except elevenlabs.APIError as e:
    print(f"API error: {e.message}")
If you’re still running into trouble, please check that your input text is properly formatted and not empty or malformed. And of course, feel free to reach out if you want me to help you troubleshoot further—I’m here to help! Sources: livekit-plugins/livekit-plugins-spitch/livekit/plugins/spitch/stt.py | agents/src/inference/tts.ts