---
title: "RealtimeServerEventInputAudioBufferSpeechStarted"
url: "https://kongair.terwilligar.com/apis/openai-api-2-3-0/versions/ea92d048-c746-4ead-a6a8-da28d93137d1/schemas/RealtimeServerEventInputAudioBufferSpeechStarted"
---

> Full API specification: https://kongair.terwilligar.com/apis/openai-api-2-3-0/versions/ea92d048-c746-4ead-a6a8-da28d93137d1.md

# RealtimeServerEventInputAudioBufferSpeechStarted

Sent by the server when in `server_vad` mode to indicate that speech has been detected in the audio buffer. This can happen any time audio is added to the buffer (unless speech is already detected). The client may want to use this event to interrupt audio playback or provide visual feedback to the user. The client should expect to receive a `input_audio_buffer.speech_stopped` event when speech stops. The `item_id` property is the ID of the user message item that will be created when speech stops and will also be included in the `input_audio_buffer.speech_stopped` event (unless the client manually commits the audio buffer during VAD activation).

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: OpenAI API
  version: 2.3.0
servers:
  - url: https://api.openai.com/v1
components:
  schemas:
    RealtimeServerEventInputAudioBufferSpeechStarted:
      type: object
      description: >
        Sent by the server when in `server_vad` mode to indicate that speech has
        been 

        detected in the audio buffer. This can happen any time audio is added to
        the 

        buffer (unless speech is already detected). The client may want to use
        this 

        event to interrupt audio playback or provide visual feedback to the
        user. 


        The client should expect to receive a
        `input_audio_buffer.speech_stopped` event 

        when speech stops. The `item_id` property is the ID of the user message
        item 

        that will be created when speech stops and will also be included in the 

        `input_audio_buffer.speech_stopped` event (unless the client manually
        commits 

        the audio buffer during VAD activation).
      properties:
        event_id:
          type: string
          description: The unique ID of the server event.
        type:
          type: string
          enum:
            - input_audio_buffer.speech_started
          description: The event type, must be `input_audio_buffer.speech_started`.
          x-stainless-const: true
        audio_start_ms:
          type: integer
          description: >
            Milliseconds from the start of all audio written to the buffer
            during the 

            session when speech was first detected. This will correspond to the 

            beginning of audio sent to the model, and thus includes the 

            `prefix_padding_ms` configured in the Session.
        item_id:
          type: string
          description: >
            The ID of the user message item that will be created when speech
            stops.
      required:
        - event_id
        - type
        - audio_start_ms
        - item_id
      x-oaiMeta:
        name: input_audio_buffer.speech_started
        group: realtime
        example: |
          {
              "event_id": "event_1516",
              "type": "input_audio_buffer.speech_started",
              "audio_start_ms": 1000,
              "item_id": "msg_003"
          }
```
