// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;

namespace OpenAI.RealtimeConversation
{
    internal partial class InternalRealtimeServerVadTurnDetection : ConversationTurnDetectionOptions
    {
        public InternalRealtimeServerVadTurnDetection()
        {
            Kind = ConversationTurnDetectionKind.ServerVoiceActivityDetection;
        }

        internal InternalRealtimeServerVadTurnDetection(ConversationTurnDetectionKind kind, IDictionary<string, BinaryData> serializedAdditionalRawData, float? threshold, TimeSpan? prefixPaddingMs, TimeSpan? silenceDurationMs) : base(kind, serializedAdditionalRawData)
        {
            Threshold = threshold;
            PrefixPaddingMs = prefixPaddingMs;
            SilenceDurationMs = silenceDurationMs;
        }

        public float? Threshold { get; set; }
        public TimeSpan? PrefixPaddingMs { get; set; }
        public TimeSpan? SilenceDurationMs { get; set; }
    }
}
