Skip to content
Assistants

Set how the voice says a word

PUT/assistants/{id}/pronunciations

Stores the version of a word the user chose by ear. On calls with the assistant's current voice, that text is sent to the voice in place of the word; the transcript keeps the word.

Path parameters

Request body

  • termstringrequired

    The word or name as it is written in the prompt and as the assistant writes it, e.g. "Swile" or "Thibault Lhuillier". Matched whole-word and case-sensitively.

    Example "Swile"1 to 100 characters

  • sounds_likestringrequired

    How it must sound, as you would explain it to a colleague: a respelling in the call's language and any note on silent letters or English reading.

    Example "swaïle, une seule syllabe, à l'anglaise"1 to 300 characters

  • textstringrequired

    The version chosen, sent to the voice in place of the word on calls. The word itself means no replacement.

    1 to 500 characters

  • versionsarray of string

    Every version that was offered, kept to choose again later without a new recording.

    Default []at most 10 items · each item 1 to 500 characters

Response

200
  • pronunciationobject

Errors

  • 400Invalid request: a field or parameter failed validation{ "message"?: string, "error"?: string, "bodyErrors"?: {…} }
  • 404Not found in your organization{ "message"?: string, "error"?: string, "bodyErrors"?: {…} }

Error bodies carry an error (or message) string; a 400 adds bodyErrors.issues. See Errors.