Skip to main content
Pronunciation dictionaries let you control how specific words and phrases are spoken during text-to-speech synthesis. Dictionaries are applied automatically before speech generation — no changes to your text input required.

Item Types

Each dictionary contains up to 100 items. Two types are supported:

Alias (text replacement)

Replaces matched text with alternative text before synthesis:

Phoneme (IPA notation)

Specifies exact pronunciation using the International Phonetic Alphabet:

Using a Dictionary

Pass the dictionary ID when synthesizing speech: REST API:
WebSocket: pass pronunciation_dict_id as a query parameter on the connection URL:

Managing Dictionaries

Create a dictionary

You can also upload a PLS/XML or plain text file via multipart/form-data instead of providing items as JSON. Plain text format:

List dictionaries

Get a dictionary

Update a dictionary

Updates use optimistic locking — if the dictionary was modified concurrently, the request returns 409 Conflict. Re-fetch and retry.

Delete a dictionary

Limits

File Upload Formats

When creating a dictionary via file upload, two formats are supported: PLS/XML — standard W3C Pronunciation Lexicon Specification format:
Plain text — line-based format:
  • word=alias for alias items
  • word:/phoneme/ for IPA phonemes