Update an agent's voice
Change how an agent sounds and what it listens for.
Only the fields sent change. A request with a list (languages, pronunciations, transcription_keywords)
replaces it whole, so it needs If-Match. Answers with the agent’s whole voice. Applies from the next call.
Authorizations
An org API key: Authorization: Bearer phk_…
Headers
The ETag from your last read: the change is made only if the resource still has it, otherwise 412. Optional, except that a change replacing a list needs it (428 without it).
Optional. Must be the key's org.
Path Parameters
The agent's ID.
Body
What to change. Only the fields sent change; a list sent replaces the stored one, so send If-Match.
Known values: off, office, soft_office. More can be added, so handle values you don't recognize.
The background sound volume, above 0, up to 1. null resets it to the 0.2 default.
0 < x <= 1The languages the agent listens for, as language codes, in order. Only those the transcriber and voice support. null resets them to the voice's language or the transcriber's default.
All the pronunciations: words left out are removed, and null removes them all.
How fast the voice speaks, where 1.0 is its natural pace, within the voice's provider's range (0.5 to 1.5 for most voices). null resets it to 1.0.
All the words the agent listens for especially closely: each once, not blank.
The voice to speak with: a public voice, or one of your organization's. Changing it keeps only the languages it speaks, and brings speed into its provider's range.
Response
Successful Response
How an agent sounds and what it listens for.
The agent's ID.
Ambient sound played behind the voice. Known values: off, office, soft_office. More can be added, so handle values you don't recognize.
The background sound volume, from 0 to 1.
The languages the agent listens for, as language codes such as en or es. null when none is chosen: the transcriber's default languages apply.
The type of this object, always agent_voice.
"agent_voice"How the agent should say particular words.
How fast the voice speaks, where 1.0 is its natural pace.
Words the agent listens for especially closely, such as names or product terms.
The voice the agent speaks with. null when none is chosen.

