create_pronunciation_dictionary
Lock in exact pronunciations for custom words, names, and invented terms so they are always spoken the same way in any generated audio.
Instructions
Create a pronunciation dictionary so specific words/names are ALWAYS said a fixed way.
Great for a game/story cast: lock how lore names, places, and invented terms are
pronounced, then apply it to any speech so every character says them consistently. Save
it once (by name), then pass pronunciation=<name> to generate_speech/speak, or pin it
to a speaker (save_speaker(pronunciation=)).
Args: name: A name to save this dictionary under (reuse it later by name). rules: The easy form is a {word: say-it-like-this} map, e.g. {"Kaelthas": "kal-thass", "Y'ffre": "iffray"} (alias rules). For precise IPA control, pass a list of ElevenLabs rule objects ({"type":"phoneme","string_to_replace":"...","phoneme":"...","alphabet":"ipa"}). description: Optional note.
Returns: {"name", "id", "version_id", "rules": } or {"error"}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| rules | Yes | ||
| description | No |