VoiceAgentServerVadTurnDetection interface

Server-side voice activity detection.

Extends

Properties

create_response

Whether to generate a response automatically when voice activity detection identifies the end of speech.

end_of_utterance_detection

Semantic end-of-utterance detection configuration. Set to null to disable it.

idle_timeout_ms

The idle duration, in milliseconds, after the last response's audio finishes playing before an automatic response is triggered.

interrupt_response

Whether detected user speech automatically interrupts an ongoing response.

prefix_padding_ms

The amount of audio, in milliseconds, to include before the detected start of speech.

silence_duration_ms

The duration of silence, in milliseconds, required to detect the end of speech.

speech_duration_ms

Minimum speech duration required to trigger detection, in milliseconds.

threshold

The activation threshold for voice activity detection. Higher values require louder audio to detect speech.

type

The turn-detection type. Always server_vad for server-side voice activity detection.

Inherited Properties

auto_truncate

Whether the input audio buffer is truncated automatically when speech stops.

Property Details

create_response

Whether to generate a response automatically when voice activity detection identifies the end of speech.

create_response?: boolean

Property Value

boolean

end_of_utterance_detection

Semantic end-of-utterance detection configuration. Set to null to disable it.

end_of_utterance_detection?: VoiceAgentEndOfUtteranceDetection

Property Value

idle_timeout_ms

The idle duration, in milliseconds, after the last response's audio finishes playing before an automatic response is triggered.

idle_timeout_ms?: number

Property Value

number

interrupt_response

Whether detected user speech automatically interrupts an ongoing response.

interrupt_response?: boolean

Property Value

boolean

prefix_padding_ms

The amount of audio, in milliseconds, to include before the detected start of speech.

prefix_padding_ms?: number

Property Value

number

silence_duration_ms

The duration of silence, in milliseconds, required to detect the end of speech.

silence_duration_ms?: number

Property Value

number

speech_duration_ms

Minimum speech duration required to trigger detection, in milliseconds.

speech_duration_ms?: number

Property Value

number

threshold

The activation threshold for voice activity detection. Higher values require louder audio to detect speech.

threshold?: number

Property Value

number

type

The turn-detection type. Always server_vad for server-side voice activity detection.

type: "server_vad"

Property Value

"server_vad"

Inherited Property Details

auto_truncate

Whether the input audio buffer is truncated automatically when speech stops.

auto_truncate?: boolean

Property Value

boolean

Inherited From VoiceAgentTurnDetectionConfig.auto_truncate