{"message": "failed to synthesize speech, retrying...
# ask-ai
h
{"message": "failed to synthesize speech, retrying in 0.1s", "level": "WARNING", "name": "livekit.agents", "exc_info": "Traceback (most recent call last):\n File \"C:\\Users\\Sahil Dutta 2\\Desktop\\axl\\axlai-voicekit\\.venv\\Lib\\site-packages\\livekit\\agents\\tts\\tts.py\", line 267, in _main_task\n raise APIError(f\"no audio frames were pushed for text: {self._input_text}\")\nlivekit.agents._exceptions.APIError: no audio frames were pushed for text: Hi, I am Arya, an AWS Engineer designed and developed by NTT DATA. (body=None, retryable=True)", "tts": "livekit.plugins.azure.tts.TTS", "attempt": 1, "streamed": false, "timestamp": "2025-11-17T102212.191458+00:00"} {"message": "failed to synthesize speech, retrying in 2.0s", "level": "WARNING", "name": "livekit.agents", "exc_info": "Traceback (most recent call last):\n File \"C:\\Users\\Sahil Dutta 2\\Desktop\\axl\\axlai-voicekit\\.venv\\Lib\\site-packages\\livekit\\agents\\tts\\tts.py\", line 267, in _main_task\n raise APIError(f\"no audio frames were pushed for text: {self._input_text}\")\nlivekit.agents._exceptions.APIError: no audio frames were pushed for text: Hi, I am Arya, an AWS Engineer designed and developed by NTT DATA. (body=None, retryable=True)", "tts": "livekit.plugins.azure.tts.TTS", "attempt": 2, "streamed": false, "timestamp": "2025-11-17T102212.454233+00:00"} {"message": "Speech recognition canceled: CancellationDetails(reason=CancellationReason.Error, error_details=\"WebSocket upgrade failed: Authentication error (401). Please check subscription information and region name. SessionId: 83963ec3ebe942a9b26d45cfc0fda026\")", "level": "WARNING", "name": "livekit.plugins.azure", "code": "CancellationErrorCode.AuthenticationFailure", "reason": "CancellationReason.Error", "error_details": "WebSocket upgrade failed: Authentication error (401). Please check subscription information and region name. SessionId: 83963ec3ebe942a9b26d45cfc0fda026", "timestamp": "2025-11-17T102212.671138+00:00"}
t
Thanks for reaching out, Sahil. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'm sorry to hear you're running into these errors. Let's take a closer look together—they actually point to two different issues: 1. "No audio frames were pushed for text" This usually means the TTS system is processing your input text but isn't producing any audio output. Here's how we can tackle this: • Double-check that your TTS provider (like Azure) is returning valid audio data. • Make sure your input text is valid and formatted in a way the TTS model supports. • Review your TTS settings, such as the model and sample rate, to ensure they're configured correctly. • Try enabling detailed logging—it can really help pinpoint where things might be going wrong in the TTS process. 2. "WebSocket upgrade failed: Authentication error (401)" This error suggests there's an authentication hiccup during the WebSocket handshake with Azure. To get this sorted, you might want to: • Confirm that your Azure Speech key and region are accurate. • Check that environment variables like
AZURE_SPEECH_KEY
and
AZURE_SPEECH_REGION
are set up properly. • If you're using a custom endpoint, make sure it's correctly formatted and accessible. • Consider passing your credentials directly to the TTS constructor, like so:
tts = azure.TTS(speech_key="<your_key>", speech_region="<your_region>")
By working through these steps, you should be able to resolve these errors. Please don't hesitate to reach out if you'd like me to walk you through any of this or if you have more questions—I'm here to help! Sources: livekit-plugins/livekit-plugins-inworld/livekit/plugins/inworld/tts.py | plugins/rime/src/tts.ts | Text-to-speech (TTS) models | LiveKit Docs | AI Service Plugin Ecosystem | livekit/livekit_composite | DeepWiki | Azure Speech TTS plugin guide | LiveKit Docs