bodhi-realtime-agent / TwilioBridgeCallbacks
Interface: TwilioBridgeCallbacks
Defined in: telephony/twilio-bridge.ts:42
Properties
onAudioFromHuman()
onAudioFromHuman: (
pcm16kBuffer) =>void
Defined in: telephony/twilio-bridge.ts:48
Called with PCM L16 16kHz audio FROM the human (ready for client).
Parameters
pcm16kBuffer
Buffer
Returns
void
onCallConnected()
onCallConnected: (
callSid) =>void
Defined in: telephony/twilio-bridge.ts:44
Called when Twilio connects and audio bridge is ready.
Parameters
callSid
string
Returns
void
onCallEnded()
onCallEnded: (
callSid,reason) =>void
Defined in: telephony/twilio-bridge.ts:46
Called when the human hangs up or call ends.
Parameters
callSid
string
reason
string
Returns
void
onError()
onError: (
error) =>void
Defined in: telephony/twilio-bridge.ts:50
Called on error (call failed, network issue).
Parameters
error
Error
Returns
void