VoiceAgentRealtimeClientOptions interface
Options for the Voice Agents realtime client.
Properties
| api |
API version used to connect. Defaults to "v1". |
| connection |
Default connection timeout in milliseconds. |
| credential |
Microsoft Entra scopes used to acquire a WebSocket access token. |
| user |
Prefix added to the SDK user-agent value in Node.js. |
| web |
Custom WebSocket transport, for example to connect through an authenticated relay.
By default, uses |
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