I have an issue with TTS 11labs here is my issue l...
# ask-ai
b
I have an issue with TTS 11labs here is my issue livekit.agents._exceptions.APIStatusError: Could not synthesize (status_code=-1, request_id=None, body=None, retryable=True) {"tts": "livekit.plugins.elevenlabs.tts.TTS", "attempt": 2, "streamed": true, "pid": 32436, "job_id": "AJ_JCG9A9Daa3Tf"}
t
Thanks for reaching out, Iliyass. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
It looks like there’s a network or connection hiccup stopping the LiveKit framework from reaching the ElevenLabs TTS API. No worries—here are some friendly steps to help you get it sorted: • Double-check your network connection and firewall settings to make sure the ElevenLabs API endpoint is accessible. • Take a quick look at the ElevenLabs service status to see if everything’s up and running on their end. • Make sure your API keys and settings (like the base URL and region) are all correct. • Turn on detailed logging in your LiveKit environment to gather more clues about what’s going on. • Try adding a retry mechanism with exponential backoff since this error can be retried. If you’re still running into trouble, increasing the logging detail and checking the exact exception before the error pops up can really help pinpoint if it’s something like DNS resolution, TLS handshake, or another network-level issue. Hang in there—you’ve got this! Sources: livekit-plugins/livekit-plugins-azure/livekit/plugins/azure/tts.py