Skip to content

bodhi-realtime-agent / createClientChannel

Function: createClientChannel() ​

createClientChannel(params): IClientChannel

Defined in: src/transport/client-channel-factory.ts:43

Builds the client ↔ session media channel for a VoiceSession.

  • websocket: SessionClientSender → ClientSenderAdapter; otherwise ClientTransport.
  • direct_rtc: DirectRtcClientChannel — JSON/control on WebSocket; optional Opus RTP when rtcAudio: 'werift_opus' (requires directRtcMedia + runtime werift / @evan/opus). Otherwise outbound PCM uses sendAudio.

Parameters ​

params ​

CreateClientChannelParams

Returns ​

IClientChannel

Built with VitePress