Search Results for

    Show / Hide Table of Contents

    Class TurnDetection

    Configuration for turn detection, ether Server VAD or Semantic VAD. This can be set to null to turn off, in which case the client must manually trigger model response.

    Server VAD means that the model will detect the start and end of speech based on audio volume and respond at the end of user speech.

    Semantic VAD is more advanced and uses a turn detection model (in conjunction with VAD) to semantically estimate whether the user has finished speaking, then dynamically sets a timeout based on this probability.
    For example, if user audio trails off with "uhhm", the model will score a low probability of turn end and wait longer for the user to continue speaking. This can be useful for more natural conversations, but may have a higher latency.

    Inheritance
    object
    TurnDetection
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.OpenAI.Realtime
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    public class TurnDetection

    Properties

    | Edit this page View Source

    SemanticVad

    Server-side semantic turn detection which uses a model to determine when the user has finished speaking.

    Declaration
    [JsonProperty("semantic_vad")]
    public SemanticVad SemanticVad { get; set; }
    Property Value
    Type Description
    SemanticVad
    | Edit this page View Source

    ServerVad

    Server-side voice activity detection (VAD) which flips on when user speech is detected and off after a period of silence.

    Declaration
    [JsonProperty("server_vad")]
    public ServerVad ServerVad { get; set; }
    Property Value
    Type Description
    ServerVad
    | Edit this page View Source

    Type

    Required. Type of turn detection, server_vad to turn on simple Server VAD.

    Declaration
    [JsonProperty("type")]
    public string Type { get; set; }
    Property Value
    Type Description
    string

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation