Hey, getting no audio frames were pushed (retryabl...
# ask-ai
p
Hey, getting no audio frames were pushed (retryable=True) while using azure TTS. This is breaking when using latest livekit version i.e 1.2.7, but working in the previous 1.1 versions. Am I missing something?
t
Thanks for reaching out, harish. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hey there! That error message "no audio frames were pushed (retryable=True)" pops up when Azure TTS tries to process your request but doesn’t return any audio data. This can happen for a few reasons, like if the input text is empty or not quite right, if there’s an issue with your Azure setup, or if the sample rate isn’t supported. Here are some friendly steps to help you fix it: 1. Validate Input Text: Double-check that your input text isn’t empty and is formatted correctly. Avoid sending just spaces or broken SSML. 2. Verify Azure Configuration: Make sure your Azure credentials (like
speech_key
and
speech_region
) are correct and properly set up. You can also use environment variables like
AZURE_SPEECH_KEY
and
AZURE_SPEECH_REGION
for convenience. 3. Check Supported Sample Rates: Confirm that your
sample_rate
is one of these supported values: 8000, 16000, 22050, 24000, 44100, or 48000 Hz. 4. Enable and Monitor Retries: Since the error is retryable, LiveKit will automatically try again for you. You can tweak the retry settings using
APIConnectOptions
if you want. 5. Handle Errors in Code: Use the
on("error")
event on your TTS instance to catch errors and log them, which can really help with debugging. 6. Use FallbackAdapter: Consider setting up a fallback option to switch to another TTS provider if Azure keeps giving you trouble. If you’re still stuck after trying these, double-check your Azure credentials, region, and network connection. And of course, feel free to reach out if you want a hand—I’m here to help! Sources: livekit-plugins/livekit-plugins-neuphonic/livekit/plugins/neuphonic/tts.py | Azure Speech TTS integration guide | LiveKit Docs