Skip to main content
POST
Listen to a microphone for an agent

Authorizations

Authorization
string
header
required

An org API key (gh_live_…) from Settings → API keys in the console.

Path Parameters

agent_id
string
required

The agent’s id, e.g. billing.

Body

application/json
keyterms
string[]

Names and terms it should get right (product, team and people’s names).

Maximum array length: 50
Maximum string length: 50
language
string

What it mostly hears, as an ISO 639-1 or 639-3 code. Left out: worked out from the audio.

Example:

"zh"

also
string[]

Other languages mixed in, for people who switch between two.

Maximum array length: 5
Example:
silence_seconds
number
default:0.7

How long a pause ends a sentence (with turns: pause).

Required range: 0.3 <= x <= 3
model
enum<string>
default:scribe_v3_live

Which ElevenLabs Scribe model hears it. Scribe v3 Live makes 43% fewer errors than v2 Realtime, at the same price.

Available options:
scribe_v3_live,
scribe_v2_realtime
multilingual
boolean
default:false

Scribe v3 Live only: follows switches between languages, even mid-sentence, each written in its own script. It can also pick up background talk in another language.

turns
enum<string>
default:pause

When a sentence is committed. pause: after silence_seconds of quiet. predicted (Scribe v3 Live only): Scribe decides from what was said as well as the pause, so someone who stops to think mid-sentence isn’t cut off.

Available options:
pause,
predicted
speakers
boolean
default:false

Scribe v3 Live only: each transcript says which speaker said it.

conversation_id
string

The conversation this is heard in: one with this same agent (another agent’s is a 400, an unknown one a 404). It makes the conversation a web call (its call), unless it is a phone call, a scheduled run, a website widget’s chat or an eval’s conversation already: those stay what they are. Either way each listening socket is written on the conversation’s voice trace (GET /v1/conversations/{conversation_id}/voice) as counts and timings, and its audio is kept with the conversation (GET /v1/conversations/{conversation_id}/audio) unless the agent’s recording is off (GET /v1/agents/{agent_id}/recording). Left out, nothing is kept.

Example:

"conv_8f2k1m0q"

Response

OK

object
string
required
Allowed value: "listening"
url
string
required

The WebSocket address, token included. Open it once, within expires_in seconds.

expires_in
integer
required
Example:

900

model
string
Example:

"scribe_v3_live"

audio_format
string
Example:

"pcm_16000"

keyterms
string[]

The terms it took.