// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;

namespace OpenAI.RealtimeConversation
{
    public partial class ConversationInputSpeechStartedUpdate : ConversationUpdate
    {
        internal ConversationInputSpeechStartedUpdate(string eventId, int audioStartMs, string itemId) : base(eventId)
        {
            Argument.AssertNotNull(itemId, nameof(itemId));

            Kind = ConversationUpdateKind.InputAudioBufferSpeechStarted;
            AudioStartMs = audioStartMs;
            ItemId = itemId;
        }

        internal ConversationInputSpeechStartedUpdate(ConversationUpdateKind kind, string eventId, IDictionary<string, BinaryData> serializedAdditionalRawData, int audioStartMs, string itemId) : base(kind, eventId, serializedAdditionalRawData)
        {
            AudioStartMs = audioStartMs;
            ItemId = itemId;
        }

        internal ConversationInputSpeechStartedUpdate()
        {
        }

        public int AudioStartMs { get; }
        public string ItemId { get; }
    }
}
