ServerVadTurnDetection Class

Definition

Base model for VAD-based turn detection.

public class ServerVadTurnDetection : Azure.AI.VoiceLive.TurnDetection, System.ClientModel.Primitives.IJsonModel<Azure.AI.VoiceLive.ServerVadTurnDetection>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.VoiceLive.ServerVadTurnDetection>
type ServerVadTurnDetection = class
    inherit TurnDetection
    interface IJsonModel<ServerVadTurnDetection>
    interface IPersistableModel<ServerVadTurnDetection>
Public Class ServerVadTurnDetection
Inherits TurnDetection
Implements IJsonModel(Of ServerVadTurnDetection), IPersistableModel(Of ServerVadTurnDetection)
Inheritance
ServerVadTurnDetection
Implements

Constructors

Name Description
ServerVadTurnDetection()

Initializes a new instance of ServerVadTurnDetection.

Properties

Name Description
AutoTruncate

Whether to automatically truncate the audio buffer when speech stops.

CreateResponse

Whether to automatically create a response when speech stops.

EndOfUtteranceDetection

Configuration for end-of-utterance detection.

InterruptResponse

Whether to allow the user's speech to interrupt the assistant's response.

PrefixPadding

Gets or sets the PrefixPaddingMs.

SilenceDuration

Gets or sets the SilenceDurationMs.

Threshold

Activation threshold for VAD detection. Range: 0.0 to 1.0.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<ServerVadTurnDetection>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<ServerVadTurnDetection>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IJsonModel<TurnDetection>.Create(Utf8JsonReader, ModelReaderWriterOptions) (Inherited from TurnDetection)
IJsonModel<TurnDetection>.Write(Utf8JsonWriter, ModelReaderWriterOptions) (Inherited from TurnDetection)
IPersistableModel<ServerVadTurnDetection>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<ServerVadTurnDetection>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<ServerVadTurnDetection>.Write(ModelReaderWriterOptions)
IPersistableModel<TurnDetection>.Create(BinaryData, ModelReaderWriterOptions) (Inherited from TurnDetection)
IPersistableModel<TurnDetection>.GetFormatFromOptions(ModelReaderWriterOptions) (Inherited from TurnDetection)
IPersistableModel<TurnDetection>.Write(ModelReaderWriterOptions) (Inherited from TurnDetection)

Applies to