VoiceAgentLiveClientOptions interface
Default settings for GPT Live connections.
- Extends
Properties
| close |
Time to wait for session.closed during graceful shutdown, in milliseconds. Defaults to 5,000. |
| session |
Time to wait for Foundry's session.started event, in milliseconds. Defaults to 30,000. |
Inherited 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
closeTimeoutInMs
Time to wait for session.closed during graceful shutdown, in milliseconds. Defaults to 5,000.
closeTimeoutInMs?: number
Property Value
number
sessionTimeoutInMs
Time to wait for Foundry's session.started event, in milliseconds. Defaults to 30,000.
sessionTimeoutInMs?: number
Property Value
number
Inherited Property Details
apiVersion
API version used to connect. Defaults to "v1".
apiVersion?: string
Property Value
string
Inherited From VoiceAgentRealtimeClientOptions.apiVersion
connectionTimeoutInMs
Default connection timeout in milliseconds.
connectionTimeoutInMs?: number
Property Value
number
Inherited From VoiceAgentRealtimeClientOptions.connectionTimeoutInMs
credentialScopes
Microsoft Entra scopes used to acquire a WebSocket access token.
credentialScopes?: string | string[]
Property Value
string | string[]
Inherited From VoiceAgentRealtimeClientOptions.credentialScopes
userAgentPrefix
Prefix added to the SDK user-agent value in Node.js.
userAgentPrefix?: string
Property Value
string
Inherited From VoiceAgentRealtimeClientOptions.userAgentPrefix
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
Inherited From VoiceAgentRealtimeClientOptions.webSocketFactory