Skip to Content

Pronunciation

Teach your agent to say your brand names, acronyms, and product codes the way your customers do.

Some words are spelled one way and said another: your company name, an acronym your industry pronounces as a word, a policy code with a letter that has to be spoken out. A pronunciation table fixes those.

Replacements apply to speech only. The transcript and the agent's own memory keep the original text, so "Kejue" is still "Kejue" in your records.

{
  "slug": "brand_names",
  "name": "Brand names",
  "definition": {
    "entries": [
      {
        "id": "kejue",
        "from": "Kejue",
        "to": "kay-joo"
      },
      {
        "id": "cplusplus",
        "from": "C++",
        "to": "C plus plus"
      },
      {
        "id": "un",
        "from": "UN",
        "to": "United Nations",
        "case_sensitive": true
      }
    ]
  }
}

Over the API: POST /v1/pronunciation-tables.

Entries are plain text. We don't interpret SSML, phoneme alphabets, or variables — write what you want said.

Writing entries

FieldWhat it is
idA stable name for the entry, unique in the table
fromThe text to look for
toWhat to say instead. Empty means "say nothing"
matchword (default) matches whole words; anywhere matches inside them
case_sensitiveOff by default, so UN and un both match

Up to 250 entries per table.

Two things to know about matching:

  • Entries run in order, and output is never re-scanned. With alpha → beta then beta → gamma, the input "alpha beta" comes out as "beta gamma" — the new beta isn't matched again.
  • word mode is punctuation-aware. C++ matches in "Use C++ today" but not in "C++17". Use anywhere when you want it inside a token.

Multiword terms work, and so do terms the model happens to split across chunks as it writes.

Attach a table to an agent

Agents reference tables by ID, in order:

{
  "behavior": {
    "pronunciation": {
      "table_ids": [
        "11111111-1111-4111-8111-111111111111",
        "22222222-2222-4222-8222-222222222222"
      ]
    }
  }
}

Send that in a draft patch, then promote and deploy. Up to 50 tables.

Order is precedence. Everything in the first table runs before anything in the second, so put your most specific table first — a general table that rewrites "UN" shouldn't get to it before the one that handles "UNHCR".

Pronunciation and guardrails together

Guardrails check both what the agent wrote and what it will actually say. A replacement that would introduce a blocked phrase is withheld, and one that would hide a blocked phrase doesn't help either. Pronunciation can't get speech past a guardrail in either direction.

Removing a table

A table still attached to an agent can't be archived; the error lists what's using it, so detach it there first.

See also

Agents · Guardrails · Voices & models

On this page