Messages
"<binary pcm_f32le 100ms audio chunk>"{
"type": "end_of_stream"
}{
"type": "diarization_speaker_start",
"data": {
"timestamp": 1.24,
"speaker": "SPEAKER_00"
}
}{
"type": "diarization_speaker_end",
"data": {
"timestamp": 3.863,
"speaker": "SPEAKER_00"
}
}{
"type": "error",
"message": "Invalid chunk size"
}Streaming
Stream audio
WSS
<generated url from
/
v1
/
live endpoint>
Messages
"<binary pcm_f32le 100ms audio chunk>"{
"type": "end_of_stream"
}{
"type": "diarization_speaker_start",
"data": {
"timestamp": 1.24,
"speaker": "SPEAKER_00"
}
}{
"type": "diarization_speaker_end",
"data": {
"timestamp": 3.863,
"speaker": "SPEAKER_00"
}
}{
"type": "error",
"message": "Invalid chunk size"
}query
type:object
The token is embedded in the WebSocket URL returned by the POST /v1/live REST endpoint. It is single-use and grants access only to this stream session — it carries no team credentials or API key.
token
type:string
Single-use temporary token generated when creating a stream session via POST /v1/live.
binaryAudioChunk
type:string
Raw PCM audio chunk (binary frame).
Example:
<binary pcm_f32le 100ms audio chunk>endOfStream
type:object
End-of-stream signal.
diarizationSpeakerStart
type:object
Emitted when a speaker begins a turn.
diarizationSpeakerEnd
type:object
Emitted when a speaker's turn ends.
error
type:object
Emitted when the server encounters a problem processing a frame.
Was this page helpful?
⌘I