Speech synthesis models, or TTS (text-to-speech), are trained on vast audio datasets and produce high-fidelity voices. However, they can still mispronounce certain words, adopt an artificial rhythm, or encounter technical errors when connected to an application via API. A guide published by ElevenLabs lists these three categories of problems and how to resolve them.
Understanding Pronunciation Errors
Pronunciation errors occur when the engine encounters words or phrases absent from its training data. This is most often the case for industry jargon, brand names, and proper nouns. The engine converts text into phonemes, the smallest units of sound, through a step called grapheme-to-phoneme conversion (G2P). When the spelling does not match known patterns, it guesses the most likely pronunciation.
Acronyms and homographs, words that are spelled the same but pronounced differently depending on context, pose comparable difficulties. The guide cites the example of the English word “read”, pronounced differently in the past and present. To correct these cases, two tools are proposed. The first is the pronunciation dictionary in PLS (Pronunciation Lexicon Specification) format, a W3C standard that associates terms with their pronunciation in the International Phonetic Alphabet (IPA, not to be confused with the Application Programming Interface). These entries only work with the eleven_v4, eleven_v4_turbo, eleven_flash_v2, and eleven_v3 models; on other models, alias rules must be used. PLS files are case-sensitive, so “tomato” and “Tomato” must be added if both forms are used. The second tool is the phonetic tag inserted directly into the script, more suited for a one-off correction.
Writing Text Meant to Be Heard
Text intended to be read is not always suitable for speech. The guide advises asking yourself, while writing, where to pause and where to speed up. It also recommends writing out numbers, currencies, and dates in full: an indication like “15m” can be read as “fifteen million” or “fifteen meters”, and the engine should not have to guess.
Punctuation plays a central role in rhythm. Commas mark short pauses mid-sentence, periods end an idea, and ellipses or em dashes add a breath in complex ideas. Long, conditional, or multi-clause sentences are most likely to be rushed; breaking them into statements of varying lengths limits this risk. Finally, text from a content management system may contain HTML, JSON, or Markdown, which the engine may read literally or incorporate inconsistently. The guide recommends removing them.
Diagnosing API Errors
Teams producing audio at scale often use an API. The guide details four common HTTP codes. Code 400 indicates a request the model cannot process, particularly when the text exceeds the character limit: 10,000 characters for eleven_v4 and eleven_multilingual_v2,5,000 for eleven_v3,30,000 for eleven_flash_v2 and 40,000 for eleven_flash_v2_5, on all subscriptions. In this case, the text must be split into sections. The same code appears in case of empty text (empty_text).
Code 401 indicates that the gateway rejected the credentials, which happens if the API key is missing (missing_api_key) or invalid (invalid_api_key). Code 404 indicates that a voice ID is incorrect or missing (voice_not_found). Code 429 has two distinct causes: exceeding the subscription’s concurrent request limit (concurrent_limit_exceeded), which the guide proposes managing with an asynchronous queue, for example with Redis, or platform saturation (system_busy), for which it recommends a retry with exponential backoff.
The guide concludes with a testing step: it suggests checking brand names, technical terms, and five- to ten-word expressions in isolation before launching production.
