Real-time transcript streaming via WebSocket connection
ws://your-domain.com/live-transcript/{call_sid}?token={api_key}
This WebSocket endpoint provides real-time streaming of call transcripts as they are generated. It’s designed for building live monitoring dashboards, call supervision tools, and accessibility features.
call_sid
(string, required): The Twilio Call SID of the call you want to monitorcontent
: The transcribed textspeaker
: "user"
or "assistant"
is_final
: Whether this is a final transcriptconfidence
: Speech recognition confidence (0.0 - 1.0)segment_start
: Start time in seconds from call startsegment_end
: End time in seconds from call startcreated_at
: ISO timestamp of transcript creationin-progress
: Call is activecompleted
: Call ended successfullyfailed
: Call failed or was terminatedpong
message
call_status
message
Code | Description |
---|---|
1000 | Normal closure |
1001 | Going away |
1002 | Protocol error |
1003 | Unsupported data |
1006 | Abnormal closure |
1008 | Authentication failed or access denied |
1011 | Server error |