Skip to content

TwilioRealtimeTransportLayerOptions

type TwilioRealtimeTransportLayerOptions = OpenAIRealtimeWebSocketOptions & object;

The options for the Twilio Realtime Transport Layer.

optional inputAudioInactivityTimeoutMs?: number | null;

How long to wait for more Twilio input media while speech is active before padding the missing input with silence. Defaults to 750ms. The maximum supported value is 2,147,483,647ms. Set to null to disable inactivity padding.

twilioWebSocket: WebSocket | NodeWebSocket;

The websocket that is receiving messages from Twilio’s Media Streams API. Typically the connection gets passed into your request handler when running your WebSocket server.