[2025-09-10 06:53:00,707] 335 livekit.agents - WAR...
# ask-ai
a
[2025-09-10 065300,707] 335 livekit.agents - WARNING - failed to synthesize speech, retrying in 0.1s Traceback (most recent call last): File "/var/www/html/Mia_API_V1/venv/lib/python3.10/site-packages/livekit/agents/tts/tts.py", line 311, in _main_task await self._run(output_emitter) File "/var/www/html/Mia_API_V1/venv/lib/python3.10/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=8ff70920c36a, body=None, retryable=False) Please tell me why this error occurs
t
Thanks for reaching out, Urvil. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
The error you're seeing points to a problem with authentication credentials. Could you please let me know which TTS plugin you're using (like Sarvam, Resemble, OpenAI, or others)? That way, I can better understand the issue and help you find the right solution. Sources: agents/src/_exceptions.ts | livekit-plugins/livekit-plugins-spitch/livekit/plugins/spitch/stt.py
a
Elevenlabs
t
I'm sorry to hear you're encountering a 403 error with the ElevenLabs TTS plugin. This usually points to an authentication or authorization hiccup. Let’s work through some steps together to get this sorted out: 1. Verify API Key: Please double-check that your
ELEVEN_API_KEY
environment variable is set correctly or that the API key is properly passed during initialization. It might help to test the key directly with an ElevenLabs API call to be sure. 2. Check API Key Permissions: Make sure your key is valid, hasn’t expired, and has the right permissions. You can easily review this in your ElevenLabs API settings. 3. Validate Endpoint: If you’re using a custom
base_url
, please confirm it’s pointing to a valid ElevenLabs endpoint. 4. Review Usage Limits: Sometimes, usage limits or rate caps can cause this error, so it’s good to ensure your usage hasn’t exceeded those. 5. Test Minimal Configuration: Try initializing the TTS plugin with just the essential parameters—your API key and voice ID—to rule out any configuration issues. If you’ve gone through these steps and the problem is still there, don’t hesitate to reach out. I’m here to help you troubleshoot further and get things working smoothly! Sources: livekit-plugins/livekit-plugins-inworld/livekit/plugins/inworld/tts.py | plugins/elevenlabs/src/index.ts | ElevenLabs TTS integration guide | LiveKit Docs
a
Well I am using deepgram STT -- SO is it necessary to use elevenlabs STT with elevenlabs TTS ??
t
Hi there! Just to reassure you, it’s absolutely not necessary to use ElevenLabs STT together with ElevenLabs TTS in LiveKit. You’re free to mix and match different STT and TTS services to find what works best for you. For example, you can easily use Deepgram for STT while using ElevenLabs for TTS without any problems. If you have any more questions or would like a hand with the setup, please don’t hesitate to reach out—I’m here to help! Sources: plugins/elevenlabs/src/index.ts | pipeline-tts/tts_comparison.py
a
2025-09-10 143351,799 - INFO livekit.agents - EOU metrics: end_of_utterance_delay=0.95, transcription_delay=0.82 {"room": "playground-D9Xc-8tfD"} 2025-09-10 143352,903 - INFO livekit.agents - LLM metrics: ttft=0.97, input_tokens=205, cached_input_tokens=0, output_tokens=10, tokens_per_second=9.10 {"room": "playground-D9Xc-8tfD"} 2025-09-10 143353,101 - WARNING livekit.agents - failed to synthesize speech, retrying in 0.1s {"room": "playground-D9Xc-8tfD", "tts": "livekit.plugins.elevenlabs.tts.TTS", "attempt": 1, "streamed": true} Traceback (most recent call last): File "D:\MIA_V1.5\MIA_1.5_ON_AWS\venv\lib\site-packages\livekit\agents\tts\tts.py", line 311, in _main_task await self._run(output_emitter) File "D:\MIA_V1.5\MIA_1.5_ON_AWS\venv\lib\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=da6eecf2a574, body=None, retryable=False) 2025-09-10 143353,193 - WARNING livekit.agents - failed to synthesize speech, retrying in 2.0s {"room": "playground-D9Xc-8tfD", "tts": "livekit.plugins.elevenlabs.tts.TTS", "attempt": 2, "streamed": true} Traceback (most recent call last): File "D:\MIA_V1.5\MIA_1.5_ON_AWS\venv\lib\site-packages\livekit\agents\tts\tts.py", line 319, 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: Hey there! What’s on your mind? (body=None, retryable=True) 2025-09-10 143355,206 - WARNING livekit.agents - failed to synthesize speech, retrying in 2.0s {"room": "playground-D9Xc-8tfD", "tts": "livekit.plugins.elevenlabs.tts.TTS", "attempt": 3, "streamed": true} Traceback (most recent call last): File "D:\MIA_V1.5\MIA_1.5_ON_AWS\venv\lib\site-packages\livekit\agents\tts\tts.py", line 319, 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: Hey there! What’s on your mind? (body=None, retryable=True) 2025-09-10 143356,206 - INFO livekit.agents - STT metrics: audio_duration=5.00 {"room": "playground-D9Xc-8tfD"} 2025-09-10 143357,206 - ERROR livekit.agents - Error in _inference_task {"room": "playground-D9Xc-8tfD"} Traceback (most recent call last): File "D:\MIA_V1.5\MIA_1.5_ON_AWS\venv\lib\site-packages\livekit\agents\tts\tts.py", line 471, in anext val = await self._event_aiter.__anext__() StopAsyncIteration During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\MIA_V1.5\MIA_1.5_ON_AWS\venv\lib\site-packages\livekit\agents\utils\log.py", line 16, in async_fn_logs return await fn(*args, **kwargs) File "D:\MIA_V1.5\MIA_1.5_ON_AWS\venv\lib\site-packages\livekit\agents\voice\generation.py", line 147, in _inference_task async for audio_frame in tts_node: File "D:\MIA_V1.5\MIA_1.5_ON_AWS\venv\lib\site-packages\livekit\agents\voice\agent.py", line 385, in tts_node async for ev in stream: File "D:\MIA_V1.5\MIA_1.5_ON_AWS\venv\lib\site-packages\livekit\agents\tts\tts.py", line 474, in anext raise exc # noqa: B904 File "D:\MIA_V1.5\MIA_1.5_ON_AWS\venv\lib\site-packages\livekit\agents\tts\tts.py", line 319, in _main_task raise APIError(f"no audio frames were pushed for text: {self._pushed_text}")
t
I'm sorry you're encountering the error "no audio frames were pushed for text." This usually means the ElevenLabs TTS service couldn't generate audio for the text you provided. Let's work through some steps together to get this sorted out: 1. Check Input Text: Please make sure your input text is valid and formatted correctly. 2. Verify API Key: Double-check that your
ELEVEN_API_KEY
is set up properly and is still valid. 3. Validate Voice Configuration: Confirm that the voice ID and model parameters are correctly set and supported by ElevenLabs. 4. Check API Connectivity: Ensure there aren’t any connection issues with the ElevenLabs API on your end. 5. Retry Configuration: The system will retry requests based on your
max_retry
settings. If retries aren’t working, it might help to review these settings. If you’re still having trouble after trying these steps, please don’t hesitate to reach out. I’m here to help you find a solution! Sources: ElevenLabs TTS integration guide | LiveKit Docs | livekit-agents/livekit/agents/tts/fallback_adapter.py
a
When I use Elevenlabs TTS model with model = eleven_flash_v2_5 it allows me to talk... when I switch to eleven_v3 it creates problem ........ I am using livekit-plugins-elevenlabs==1.1.1
t
I'm glad you reached out! The ElevenLabs TTS model
eleven_v3
is indeed supported in LiveKit and can be explicitly set during initialization. From what we know, there aren't any documented issues or compatibility problems specifically related to this model in the LiveKit ElevenLabs plugin version 1.1.1. To help you get this sorted, here are a few friendly steps you can try: 1. Verify API Key: Please double-check that your ElevenLabs API key is valid and has the right permissions to use the
eleven_v3
model. 2. Test Model Switching: If
eleven_flash_v2_5
is working fine, try switching back and forth between the models. This might help pinpoint if there’s a specific situation causing the hiccup. 3. Monitor Logs: Take a look at the logs for any detailed error messages or warnings when using
eleven_v3
. Sometimes those little clues can lead us right to the heart of the problem. 4. Update Plugin: If you can, updating to the latest version of the LiveKit ElevenLabs plugin might help with compatibility and bring in important bug fixes. If you’re still running into trouble after these steps, please don’t hesitate to reach out again. I’m here to help, and we can explore more options or escalate the issue to get you the support you deserve. Sources: examples/other/text-to-speech/elevenlabs_tts.py | plugins/elevenlabs/src/tts.test.ts | ElevenLabs TTS integration guide | LiveKit Docs | ElevenLabs TTS integration guide | LiveKit Docs | pipeline-tts/tts_comparison.py