Skip to main content
A pronunciation dictionary maps written forms to how they should be spoken. Each entry carries either an alias (replacement text, expanded at the gateway) or a phoneme (passed through to the model) — exactly one per entry. Attach a dictionary to any TTS request with pronunciation_dict_id.

Endpoints

Unknown ids return 404 dict_not_found. PUT /entries replaces the full entry list — send every entry each time, not a delta.

Entries

A dictionary holds up to 1,000 entries. Each entry carries exactly one of alias or phoneme. Create a dictionary and set its entries:

How entries are applied

Pass the id on any TTS request:
  • Alias entries are expanded at the gateway before the transcript reaches the model. Matching is whole-word and case-insensitive unless the entry sets case_sensitive.
  • Phoneme entries are not expanded; the gateway forwards them to the model as pronunciations: [{grapheme, phoneme, case_sensitive}].
Billing uses the submitted transcript, before alias expansion. Expansion itself is capped at 20,000 characters, 4× the 5,000-character transcript limit; a request that expands past it returns 400 transcript_too_long.