Skip to main content
PATCH
Update an agent's voice

Authorizations

Authorization
string
header
required

An org API key: Authorization: Bearer phk_…

Headers

If-Match
string | null

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).

Phonely-Organization
string | null

Optional. Must be the key's org.

Path Parameters

id
string
required

The agent's ID.

Body

application/json

What to change. Only the fields sent change; a list sent replaces the stored one, so send If-Match.

background_sound
string | null

Known values: off, office, soft_office. More can be added, so handle values you don't recognize.

background_volume
number | null

The background sound volume, above 0, up to 1. null resets it to the 0.2 default.

Required range: 0 < x <= 1
languages
string[] | null

The 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.

pronunciations
PronunciationUpdate · object[] | null

All the pronunciations: words left out are removed, and null removes them all.

speed
number | null

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.

transcription_keywords
string[] | null

All the words the agent listens for especially closely: each once, not blank.

voice_id
string | null

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.

agent_id
string
required

The agent's ID.

background_sound
string
required

Ambient sound played behind the voice. Known values: off, office, soft_office. More can be added, so handle values you don't recognize.

background_volume
number
required

The background sound volume, from 0 to 1.

languages
string[] | null
required

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.

object
string
default:agent_voice
required

The type of this object, always agent_voice.

Allowed value: "agent_voice"
pronunciations
Pronunciation · object[]
required

How the agent should say particular words.

speed
number
required

How fast the voice speaks, where 1.0 is its natural pace.

transcription_keywords
string[]
required

Words the agent listens for especially closely, such as names or product terms.

voice_id
string | null
required

The voice the agent speaks with. null when none is chosen.