Table of Contents

Class ServerVad

public class ServerVad
Inheritance
object
ServerVad

Properties

CreateResponse

Optional. Whether or not to automatically generate a response when a VAD stop event occurs. Defaults to true

public bool? CreateResponse { get; set; }

Property Value

bool?

IdleTimeoutMs

Optional. Optional timeout after which a model response will be triggered automatically. This is useful for situations in which a long pause from the user is unexpected, such as a phone call. The model will effectively prompt the user to continue the conversation based on the current context.

The timeout value will be applied after the last model response's audio has finished playing, i.e. it's set to the response.done time plus audio playback duration.

An input_audio_buffer.timeout_triggered event (plus events associated with the Response) will be emitted when the timeout is reached. Idle timeout is currently only supported for server_vad mode.

public int? IdleTimeoutMs { get; set; }

Property Value

int?

InterruptResponse

Optional. Whether or not to automatically interrupt any ongoing response with output to the default conversation (i.e. conversation of auto) when a VAD start event occurs. Defaults to true

public bool? InterruptResponse { get; set; }

Property Value

bool?

PrefixPaddingMs

Optional. Used only for server_vad mode. Amount of audio to include before the VAD detected speech (in milliseconds). Defaults to 300ms.

public int? PrefixPaddingMs { get; set; }

Property Value

int?

SilenceDurationMs

Optional. Used only for server_vad mode. Duration of silence to detect speech stop (in milliseconds). Defaults to 500ms. With shorter values the model will respond more quickly, but may jump in on short pauses from the user.

public int? SilenceDurationMs { get; set; }

Property Value

int?

Threshold

Optional. Used only for server_vad mode. Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A higher threshold will require louder audio to activate the model, and thus might perform better in noisy environments.

public float? Threshold { get; set; }

Property Value

float?