projectId; see Generate With Dictionaries.
Changes are available to synthesis after the dictionary mutation finishes.
For the full HTTP contract, field limits, master-key project_id rules,
and error codes, see the Dictionaries API reference.
Create a Dictionary
Manage Dictionaries
Every
dictionaries.* and dictionaries.entries.* method accepts an optional
final { projectId } argument. It is required only for master-key callers
acting on a specific project; with a normal API key, omit it.Add and Manage Entries
Usereplacement for normal spelling-based fixes. Use ipa when you need
an exact phonetic pronunciation; IPA takes precedence over replacement.
Atomic Bulk Sync
replaceAll upserts every entry in one transaction and deletes entries
currently in the dictionary whose word is not in the payload. Use it to
sync from a CMS, PIM, or internal glossary.
Generate With Dictionaries
Pass the dictionary’sprojectId on client.tts.generate() or
client.tts.stream(). Without projectId, no dictionary applies and a
non-empty dictionaryIds is rejected. With projectId, omit dictionaryIds
to apply all active dictionaries of the project, or pass a list to select
exact IDs. Keep normalize enabled unless you have a specific reason to
bypass text normalization.
Dictionary types
Clean up
Next steps
- Types & Errors: the full TypeScript reference
- Text Normalization: how normalization interacts with dictionaries