ElevenLabs Breaks Down Speech Synthesis Errors: PLS Dictionaries and the 10,000-Character Limit in v4
A speech synthesizer guesses how to read an unfamiliar word, so it may pronounce your company's name as a string of random syllables. ElevenLabs recommends creating a PLS file, a pronunciation dictionary based on the W3C standard that maps each term to a sound record. One-off names can be fixed with a tag directly in the text. For the API, eleven_v4 accepts up to 10,000 characters per request, so longer text needs to be split into parts.
AI-processed from ElevenLabs Blog; edited by Hamidun News
You have connected speech synthesis to a voice assistant or podcast narration, and the model reads your company's name as a string of random syllables. Or it rushes through a long paragraph. Or it goes silent because the API returned an unclear error code. ElevenLabs has published an overview of these problems. It is a vendor blog, and parts of it read like marketing, but the advice will help anyone embedding voice output into a product.
The two numbers and one abbreviation in the headline mean the following. PLS (Pronunciation Lexicon Specification) is a W3C standard for pronunciation dictionaries: each word in the file is mapped to a sound record in the International Phonetic Alphabet (IPA). 10,000 characters is the maximum amount of text the eleven_v4 model accepts in a single API request. If the text is longer, the server returns a 400 error, and the script has to be split into parts.
Why the model gets words wrong
A neural network turns letters into sounds using rules it learned from training data. No dataset is universal. When it meets a word it doesn't know, the model guesses the pronunciation from general patterns. It most often fails in four cases.
The first is brands and names with "creative" spelling. The second is abbreviations. The model doesn't know whether to read API as "ay-pee-eye" or as "apy," and it has almost certainly never seen your product's new acronym. The third is homographs: words spelled the same way but pronounced differently. In English, the example is "read" in the past and present tenses. The fourth is long sentences packed with jargon. Small inaccuracies accumulate, and the speech turns flat and robotic.
How to fix pronunciation and rhythm
There are two tools for pronunciation. The first is the PLS dictionary. The model checks it during reading and takes the recorded sound from there. It is convenient when you have a fixed set of terms, such as names of medical devices and procedures. There are two limitations. Phoneme-based entries work only with the eleven_v4, eleven_v4_turbo, eleven_flash_v2, and eleven_v3 models; on the others you need alias rules instead. And the dictionary is case-sensitive, so "tomato" and "Tomato" must be added separately.
The second tool is phonetic tags placed directly in the text. They are more efficient for one-off fixes. If a podcast guest's name appears two or three times, there is no point creating a corporate dictionary for it: tagging the name where it is spoken is enough.
Dictionaries and tags fix individual words, but not intonation. For intonation, you need to edit the script itself and write for the ear, not the eye:
- Write numbers, currencies, and dates in words. The phrase "about 15m" can mean fifteen million or fifteen meters, and the model should not have to guess;
- A comma gives a short pause, a period a full stop, while an ellipsis or dash adds a pause within a complex thought;
- Break long sentences with subordinate clauses into short ones of varying length, otherwise the model starts to rush;
- If the text is exported from a CMS, strip out HTML, JSON, and Markdown. The model may read the markup literally.
API errors: what the codes mean
Teams that voice large volumes of content connect through the API, and there another layer of possible failures appears. ElevenLabs walks through the most common HTTP codes.
Code 400 means the model cannot process the data sent. There are two causes: the character limit has been exceeded (text_too_long), or an empty string was sent (empty_text). The per-request limits depend on the model: 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 plans. Split long scripts into parts and voice them in sequence, and clean out empty strings on input.
Code 401 means the gateway rejected the key, and the request never reached the model. The request must include a valid xi-api-key. Check that the key is provided, not revoked, not expired, and not truncated in the headers during deployment. The response invalid_api_key indicates a wrong key, while missing_api_key means no key was sent at all.
Code 404 appears when the service cannot find the resource named in the request URL. Usually the voice_id in the path parameters is missing or mistyped. Compare it with the one issued by the platform.
What to do in practice
Before mass voicing, run brands, names, and new phrases through a test separately. That way errors show up immediately, not after hundreds of pages have been processed. Create a dictionary for product names before the first release. Add markup stripping and text splitting by limits to your pipeline. Nothing revolutionary is in the guide, but as a production checklist it is useful. Keep in mind that the limits and phoneme-entry support apply to ElevenLabs models; other providers may differ.
- May 27, 2026Spotify launches ElevenLabs-powered AI tool for creating audiobooks
- Nov 18, 2026ElevenLabs Teaches Voice Agents to Hear Drug Names More Accurately: 17% Fewer Errors
- May 30, 2026Mistral's Voxtral TTS: A Speech Synthesis Model for AI Agents
- Nov 19, 2026Euro Truck Simulator 2 Radio Companion Learns to Read the News and Thank Donors, for $1
Key Questions Answered
Why the model gets words wrong?
A neural network turns letters into sounds using rules it learned from training data. No dataset is universal. When it meets a word it doesn't know, the model guesses the pronunciation from general patterns. It most often fails in four cases. The first is brands and names with "creative" spelling. The second is abbreviations. The model doesn't know whether to read API as "ay-pee-eye" or as "apy," and it has almost certainly never seen your product's new acronym.
How to fix pronunciation and rhythm?
There are two tools for pronunciation. The first is the PLS dictionary. The model checks it during reading and takes the recorded sound from there. It is convenient when you have a fixed set of terms, such as names of medical devices and procedures. There are two limitations. Phoneme-based entries work only with the eleven_v4, eleven_v4_turbo, eleven_flash_v2, and eleven_v3 models; on the others you need alias rules instead. And the dictionary is case-sensitive, so "tomato" and "Tomato" must be added separately.
What are the key details on API errors: what the codes mean?
Teams that voice large volumes of content connect through the API, and there another layer of possible failures appears. ElevenLabs walks through the most common HTTP codes. Code 400 means the model cannot process the data sent. There are two causes: the character limit has been exceeded (text_too_long), or an empty string was sent (empty_text).
Test Frontier LLMs & Autonomous Agents in One Workspace
Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.
Daily 60-sec AI Voice Brief + Weekly Production AI Agent Playbook
Listen to a 60-second AI news brief every morning and get a weekly hands-on playbook for shipping AI agents to production — tools, MCP servers and patterns that work. Curated by Jemal Hamidun, Head of AI at Alpina Digital.
