I'm getting a TTS error: `APIError("no audio frame...
# ask-ai
f
I'm getting a TTS error:
APIError("no audio frames were pushed for text: <text>")
. What does this mean?
t
Thanks for reaching out, Luke. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hey there! That error
APIError("no audio frames were pushed for text: <text>")
pops up when the text-to-speech (TTS) process can’t create audio for the text you provided. It can happen for a few reasons: • Empty or Non-Speakable Text: Double-check that your text isn’t empty and actually has something that can be spoken. • Provider-Specific Issues: Take a look at your TTS provider’s settings (like voice and model) and try testing the text directly with their API to see if it works there. • Network Issues: Sometimes network hiccups during audio streaming cause this. You might want to increase your timeout and retry settings in your connection options. • Non-Audio Data Returned: Make sure the response from the TTS service is properly formatted and actually includes audio data. • Configuration Problems: Check that your API keys, voice IDs, and model settings are all correct and compatible. To get this sorted, try validating your text input, reviewing your TTS provider’s settings, and checking for any network or config issues. If you want, I’m here to help you step-by-step—just let me know! Sources: livekit-plugins/livekit-plugins-upliftai/livekit/plugins/upliftai/tts.py | agents/src/tts/tts.ts