Realtime Audio Buffer Clear Event (realtime/input_audio_buffer_clear_event.py)

openai-python · src/openai/types/beta/realtime/input_audio_buffer_clear_event.py · python · Apache-2.0
ai, realtime, voice, lang:python, fw:pydantic

Python Pydantic model for OpenAI Realtime API input_audio_buffer.clear event with optional event_id.

# Source: https://github.com/openai/openai-python | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
from typing import Optional
from typing_extensions import Literal

from ...._models import BaseModel

__all__ = ["InputAudioBufferClearEvent"]


class InputAudioBufferClearEvent(BaseModel):
    type: Literal["input_audio_buffer.clear"]
    """The event type, must be `input_audio_buffer.clear`."""

    event_id: Optional[str] = None
    """Optional client-generated ID used to identify this event."""

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key