audio_passthrough message
The session's audio, echoed back with the beeps of the audio redaction
(audio_redaction, receive_realtime_processing_events): one message per packet the client
sent, in its own encoding and rate, so it can play back what the far end should hear.
Delivery
Always on the WebSocket when its option is on; never to the callback.
Fields
-
session_idstring requiredIdentifier of the session.
-
created_atstring requiredWhen the message was sent (ISO 8601, UTC).
-
type"audio_passthrough" required -
dataobject required7 fields
-
encodingstring requiredThe encoding of the audio, as the session sent it.
-
sample_rateinteger requiredThe sample rate of the audio, in hertz.
-
channelsinteger requiredInterleaved channels, as the session sent them.
-
audiostring requiredThe client's audio, base64: its own samples, the channels being redacted replaced by a beep.
-
startnumber requiredWhere
audiostarts on the session's timeline, seconds. -
endnumber requiredWhere it ends, seconds.
-
redactedobject requiredThe label beeped on each channel, by channel index; empty when nothing is.
-
Example
{ "session_id": "string", "created_at": "string", "type": "audio_passthrough", "data": { "encoding": "string", "sample_rate": 0, "channels": 0, "audio": "string", "start": 0.5, "end": 0.5, "redacted": {} }}