Skip to content

bodhi-realtime-agent / TwilioWebhookServer

Class: TwilioWebhookServer

Defined in: telephony/twilio-webhook-server.ts:41

Constructors

Constructor

new TwilioWebhookServer(config): TwilioWebhookServer

Defined in: telephony/twilio-webhook-server.ts:46

Parameters

config

TwilioWebhookServerConfig

Returns

TwilioWebhookServer

Methods

sendMedia()

sendMedia(mulawBase64, streamSid?): void

Defined in: telephony/twilio-webhook-server.ts:83

Send mulaw audio to Twilio via the active Media Stream.

Parameters

mulawBase64

string

streamSid?

string

Returns

void


start()

start(): Promise<void>

Defined in: telephony/twilio-webhook-server.ts:49

Start the HTTP + WebSocket server.

Returns

Promise<void>


stop()

stop(): Promise<void>

Defined in: telephony/twilio-webhook-server.ts:63

Stop the server and close all connections.

Returns

Promise<void>

Built with VitePress