VoiceAgentLiveClientOptions interface

Default settings for GPT Live connections.

Extends

Properties

closeTimeoutInMs

Time to wait for session.closed during graceful shutdown, in milliseconds. Defaults to 5,000.

sessionTimeoutInMs

Time to wait for Foundry's session.started event, in milliseconds. Defaults to 30,000.

Inherited 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

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