Skip to main content
All server messages are JSON text frames with a type field.

session

First message on every connection
resumed is true when you attached to an existing session. diarizer names the model that labels the speakers. Start sending audio after this message: on a new session, live audio from now on; on a resumed one, the audio you buffered while disconnected first.

speakers

Live updates
Messages arrive when a segment closes, and about once per second while the open turn grows. During silence there may be no messages at all.

speakers_snapshot

After reconnecting Same fields as speakers, but segments holds every closed segment since the start of the session. Sent right after session when you reconnect to a session that already has segments.

final

The complete result
segments lists every segment of the session from the start: the ones already sent live, followed by the rest. speakers is the number of distinct speakers. reason says why the session ended.

finished

Last message
Follows final; the server then closes the socket.

error

Problems with your stream
See stream errors for all codes.
Last modified on November 23, 2026