VoiceAgentRealtimeClientOptions interface

Options for the Voice Agents realtime client.

Properties

apiVersion

API version used to connect. Defaults to "v1".

connectionTimeoutInMs

Default connection timeout in milliseconds.

credentialScopes

Microsoft Entra scopes used to acquire a WebSocket access token.

userAgentPrefix

Prefix added to the SDK user-agent value in Node.js.

webSocketFactory

Custom WebSocket transport, for example to connect through an authenticated relay. By default, uses ws in Node.js and native WebSocket in browsers and React Native.

Property Details

apiVersion

API version used to connect. Defaults to "v1".

apiVersion?: string

Property Value

string

connectionTimeoutInMs

Default connection timeout in milliseconds.

connectionTimeoutInMs?: number

Property Value

number

credentialScopes

Microsoft Entra scopes used to acquire a WebSocket access token.

credentialScopes?: string | string[]

Property Value

string | string[]

userAgentPrefix

Prefix added to the SDK user-agent value in Node.js.

userAgentPrefix?: string

Property Value

string

webSocketFactory

Custom WebSocket transport, for example to connect through an authenticated relay. By default, uses ws in Node.js and native WebSocket in browsers and React Native.

webSocketFactory?: VoiceAgentWebSocketFactory

Property Value