OpenAI Realtime Audio Clear Event (realtime/input_audio_buffer_clear_event_param.py)

openai-python · src/openai/types/realtime/input_audio_buffer_clear_event_param.py · python · Apache-2.0
ai, realtime, voice

TypedDict parameter definition for clearing the input audio buffer in OpenAI's Realtime API. Reuse when building voice-enabled applications with OpenAI WebSockets.

# 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.
# File generated from our OpenAPI spec by Castiron. See CONTRIBUTING.md for details.

from __future__ import annotations

from typing_extensions import Literal, Required, TypedDict

__all__ = ["InputAudioBufferClearEventParam"]


class InputAudioBufferClearEventParam(TypedDict, total=False):
    """Send this event to clear the audio bytes in the buffer.

    The server will
    respond with an `input_audio_buffer.cleared` event.
    """

    type: Required[Literal["input_audio_buffer.clear"]]
    """The event type, must be `input_audio_buffer.clear`."""

    event_id: str
    """Option

... (truncated -- full source via MCP)

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

Get a free API key