Skip to main content
When you send text to Rime’s TTS models, a normalization layer runs first. It expands numbers, dates, currency, phone numbers, measurements, and other non-standard words into their spoken form before the model synthesizes audio.
Rime handles text normalization automatically. Most common formats (currency with symbols, dates with years, clock times, phone numbers, and standard measurements) expand correctly without any preprocessing. Just write naturally. If something sounds wrong, debug it with /textnorm before adding a pre-processing layer to your application.

Handled at a glance

Select a category for its full input/output reference.

Forced letter-by-letter reading

For account numbers, confirmation codes, SKUs, and acronyms the normalizer doesn’t recognize, wrap the string in spell(...) to force letter-by-letter pronunciation. It works on Coda and Mist v3, with different grouping. Mist v3 reads this code in groups of three where possible:
For Coda’s grouping and more examples, see Spell function.

Brand names, product names, and uncommon words

Rime’s models may not nail uncommon brand or product names on the first try. Three options:
  1. Submit the word to Rime to add to the dictionary (typically about a week). Reach out to your account manager via Slack or email, or contact sales@rime.ai. Mention it if you need faster turnaround or have an SLA.
  2. Send a custom lexicon with a Coda request in English, German, Spanish, French, Italian, or Portuguese. See Phoneme control.
  3. Use custom pronunciations inline on English Mist v3, with the Rime phonetic alphabet and phonemizeBetweenBrackets: true. See Custom pronunciation for the full reference.
A lexicon and inline pronunciations do not cover Coda in Arabic, Dutch, Hindi, or Japanese, or non-English Mist v3. In those cases, submit the word to Rime, or respell it phonetically in plain English. Respelling is approximate. For the full inline reference, see Custom pronunciation. To check whether a word is already in Rime’s dictionary, use the Coverage API.

Feature availability across models

For flows that need precise pause durations (legal disclaimers, regulated read-backs), Mist is the safer choice.

Debugging with the textnorm endpoint

The fastest way to spot-check normalization without writing code is the Generate page in the Rime web app: paste any input string and it shows you the normalized version Rime will synthesize from. For programmatic debugging, Rime also exposes a /textnorm endpoint that returns the grammar normalizer’s output for an input string. That output matches Coda’s normalization. Mist v3 can group spell() sequences differently, and in English it reads some formats differently. In scripts and pipelines, use it to separate normalization issues from synthesis issues.
The endpoint defaults to English. For other languages, pass a language code in the lang field:
See Languages for the full list of supported languages. The output is Coda’s normalization, whichever model you’ll synthesize with. For English on Mist v3, check the formats in Mist v3 in English. For the full request and response reference, see the Text Normalization API.

Triage workflow

When something sounds off:
  1. Capture the exact input text that produced the bad output.
  2. POST it to /textnorm and look at the normalized output.
  3. Compare the normalized output to what you expected the model to say.
  4. If normalization is wrong, you have a reproducible signal; flag it to Rime with the input, expected normalization, and actual normalization. Fixes ship on Rime’s side.
  5. If normalization looks correct but speech still sounds off, the issue is in synthesis, not normalization; try a different voice, model version, or sampling settings.

Testing checklist

Before going to production, test the voice against realistic versions of:
  1. Every date format your backend can produce (MM/DD, MM/DD/YYYY, ISO, relative like “tomorrow”).
  2. Every currency you’ll quote, including round numbers and fractional cents.
  3. The longest realistic phone number, account number, and confirmation code.
  4. Your top 20 most-spoken product or brand names.
  5. At least one utterance from each of: quote, greeting, confirmation, error, payment, scheduling.
  6. The same utterance regenerated 5 to 10 times. Consistency across regenerations is what catches sampling variance.
For anything that sounds wrong, POST the exact input to /textnorm to see what the model actually received, then flag it to Rime so the fix lands for everyone.

Write ambiguous values explicitly

Some written forms have more than one correct reading. Coda’s normalizer picks one from the surrounding words, so when the sentence doesn’t settle the reading, write the value the way it should be spoken. This matters most for text an LLM generates, where the same value can land in very different sentences.

Mist v3 in English

Mist v3 normalizes English with an earlier grammar than Coda, and that grammar mishandles the formats below. When you synthesize English with Mist v3, write them out.