project_id; omission loads no project
dictionary. The current Python TTS request/session builders do not expose that
field, so use the raw generation API (or the
JavaScript one-shot client) for dictionary-backed synthesis.
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 dictionary and entry method accepts a keyword-only
project_id. It is
required only for master-key callers acting on a specific project; with a
normal project-scoped 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
replace_all 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.
Generation Limitation
dictionary_ids alone is not enough: the API requires project_id for both
the default active dictionaries and an explicit selection. Because the Python
generation builders cannot send project_id, use the raw generation
API for dictionary-backed synthesis.
Next steps
- Types & Errors —
Dictionary,DictionaryEntry, and result models - Text Normalization — how normalization interacts with dictionaries