ElevenLabs TTS 'Could not synthesize' error

This question originally came up in our Slack community and the thread has been consolidated here for long-term reference.

I’m trying to set up ElevenLabs as my TTS provider but I keep getting an APIStatusError("Could not synthesize") error.

My configuration:

tts=elevenlabs.TTS(
    voice_id="ODq5zmih8GrVes37Dizd",
    model="eleven_turbo_v2_5",
    language="es",
    auto_mode=True,
    enable_ssml_parsing=True,
)

What could be causing this?

This error is generally caused by one of two things:

  1. ElevenLabs credentials don’t have access to that model - Check that your API key has access to the eleven_turbo_v2_5 model.

  2. Wrong voice ID - The voice must be added to your ElevenLabs account. There’s a limit on how many voices each account can use. If you’re using an account that hasn’t added that voice, the request will fail.

Verify your voice ID is correct and that it’s been added to the account associated with your API key.