purple-barista-60143
08/28/2025, 11:39 AMtall-airline-16756
08/28/2025, 11:39 AMtall-airline-16756
08/28/2025, 11:40 AMspeech_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