Set how the voice says a word
/assistants /{id} /pronunciationsStores 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
idstringrequiredID of the assistant, as returned by
GET /assistants.
Request body
application/jsontermstringrequiredThe 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 characterssounds_likestringrequiredHow 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 characterstextstringrequiredThe 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 stringEvery 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
200pronunciationobject
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.