// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;

namespace OpenAI.Realtime
{
    internal partial class InternalVadConfig
    {
        private protected IDictionary<string, BinaryData> _additionalBinaryDataProperties;

        public InternalVadConfig()
        {
        }

        internal InternalVadConfig(string kind, int? prefixPaddingMs, int? silenceDurationMs, float? threshold, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            Kind = kind;
            PrefixPaddingMs = prefixPaddingMs;
            SilenceDurationMs = silenceDurationMs;
            Threshold = threshold;
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        public string Kind { get; } = "server_vad";

        public int? PrefixPaddingMs { get; set; }

        public int? SilenceDurationMs { get; set; }

        public float? Threshold { get; set; }

        internal IDictionary<string, BinaryData> SerializedAdditionalRawData
        {
            get => _additionalBinaryDataProperties;
            set => _additionalBinaryDataProperties = value;
        }
    }
}
