Free · Daily brief + weekly playbookDaily 60-sec AI Voice Brief + Weekly Production AI Agent PlaybookGet the brief →
ReleaseAPI / Product · ActionableElevenLabs Blog→ original

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
ElevenLabs Breaks Down Speech Synthesis Errors: PLS Dictionaries and the 10,000-Character Limit in v4
Source: ElevenLabs Blog. Collage: Hamidun News.
Listen to article
Article Fact Sheet & Key Figures
ParameterDetails
Primary sourceElevenLabs Blog ↗
Editor-in-Chief
Key metric #1Use a dictionary for frequent terms and a tag for one-off guest names
Write numbers and dates out in words"15m" can be read as either millions or meters
Per-request limits5,000 characters for eleven_v3, 40,000 for eleven_flash_v2_5

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.

Story

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).

ZK
Zhemal Khamidun — Head of AI at Alpina Digital · MIPT (academic supervisor of the Tech Entrepreneurship department). Building AI products since 2019. Hamidun News is a pet project that grew into a production aggregator with 6,000+ readers.
✦ Unified AI Workspace · Nomad

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.

Try Nomad AI →Launch Nomad Agent
Jemal Hamidun

Editor-in-chief · Cite this analysis

Jemal Hamidun

Head of AI at Alpina Digital · Academic Supervisor of the Tech Entrepreneurship Department at MIPT

Head of AI & CPO of AlpinaGPT at Alpina Digital, Academic Lead of Tech Entrepreneurship at MIPT. Founder of Hamidun News and Vibe Academy.

Ready-to-paste citation for journalists, blogs and Telegram channels

Source: Hamidun News — ElevenLabs Breaks Down Speech Synthesis Errors: PLS Dictionaries and the 10,000-Character Limit in v4 https://news.hamidun.com/en/news/17204/elevenlabs-breaks-down-speech-synthesis-errors-pls-dictionar

What do you think?
Loading comments…