Table of Contents

Class ServerVAD

Namespace
OpenAI.Realtime
Assembly
OpenAI-DotNet.dll
public sealed class ServerVAD : IVoiceActivityDetectionSettings
Inheritance
ServerVAD
Implements
Inherited Members

Constructors

ServerVAD(bool, bool, int?, int?, float?)

public ServerVAD(bool createResponse = true, bool interruptResponse = true, int? prefixPadding = null, int? silenceDuration = null, float? detectionThreshold = null)

Parameters

createResponse bool
interruptResponse bool
prefixPadding int?
silenceDuration int?
detectionThreshold float?

Properties

CreateResponse

[JsonInclude]
[JsonPropertyName("create_response")]
public bool CreateResponse { get; }

Property Value

bool

DetectionThreshold

[JsonInclude]
[JsonPropertyName("threshold")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public float? DetectionThreshold { get; }

Property Value

float?

InterruptResponse

[JsonInclude]
[JsonPropertyName("interrupt_response")]
public bool InterruptResponse { get; }

Property Value

bool

PrefixPadding

[JsonInclude]
[JsonPropertyName("prefix_padding_ms")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public int? PrefixPadding { get; }

Property Value

int?

SilenceDuration

[JsonInclude]
[JsonPropertyName("silence_duration_ms")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public int? SilenceDuration { get; }

Property Value

int?

Type

[JsonInclude]
[JsonPropertyName("type")]
[JsonConverter(typeof(JsonStringEnumConverter<TurnDetectionType>))]
public TurnDetectionType Type { get; }

Property Value

TurnDetectionType