JoinInDocs
Baton
v2 (beta)
Get a key
Baton v2 Streaming (v1, frozen) BetaMarkdown

Stream (v1, frozen)

First-generation stream. One p_eot score per step.

WSS/v1/stream

Frozen. The first frame is JSON with api_key; then send raw PCM16 frames with no leading byte. Each step returns {timestamp, p_eot, words}. Rejections: 1008 invalid key or non-JSON start, 1011 no keys configured, 1013 rate limited or not ready.

Session

Open, configure and close the session.

startyou send

FieldTypeDescription
api_key requiredstring
messagesarray of object
inference_intervalnumber

Scoring step in seconds. Default 0.1.

languagestring

Language code, e.g. "en".

Audio

16 kHz mono PCM16 in binary frames.

audioyou send

Binary frame. Raw PCM16LE mono 16 kHz with no leading byte.

Speech and turns

When people speak, pause and finish, what they answered, and what may have been missed.

scoreyou receive

FieldTypeDescription
timestampnumber

Audio time in seconds.

p_eotnumber

Probability, from 0 to 1, that the speaker has finished their turn at this step.

wordsstring

The transcript so far.

Last updated 21 Oct 2026