Skip to content

fix: align realtime audio event types#3336

Open
nightcityblade wants to merge 1 commit into
openai:mainfrom
nightcityblade:fix/issue-2698-realtime-audio-event-types
Open

fix: align realtime audio event types#3336
nightcityblade wants to merge 1 commit into
openai:mainfrom
nightcityblade:fix/issue-2698-realtime-audio-event-types

Conversation

@nightcityblade
Copy link
Copy Markdown

  • I understand that this repository is auto-generated and my pull request may not be merged

Changes being requested

Fixes #2698.

Updates the non-beta realtime audio response event type literals to match the event names emitted by the API and already used by the beta realtime types:

  • response.audio.delta
  • response.audio.done
  • response.audio_transcript.delta
  • response.audio_transcript.done

Adds a small regression test that validates the four realtime audio event models accept those API event names.

Additional context & links

Tests run:

  • python3 -m ruff check src/openai/types/realtime/response_audio_delta_event.py src/openai/types/realtime/response_audio_done_event.py src/openai/types/realtime/response_audio_transcript_delta_event.py src/openai/types/realtime/response_audio_transcript_done_event.py tests/test_realtime_types.py
  • python3 -m pytest -o addopts='' tests/test_realtime_types.py

@nightcityblade nightcityblade requested a review from a team as a code owner May 31, 2026 15:15
Copy link
Copy Markdown

@nomiveritas nomiveritas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"""The event type must be 'response.audio.done'."""
"""The event type must be 'response.audio_transcript.delta'."""
"""The event type must be 'response.audio_transcript.done'."""
We recommend correcting the docstring punctuation by removing the unnecessary commas in phrases such as "The event type, must be ...". The comma is grammatically incorrect and should be omitted.
This should be corrected as part of the change. The punctuation in the affected docstrings is grammatically incorrect and does not meet the expected documentation quality standards

Respectfully Nomiveritas Major Noémi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Realtime - mismatching event type for audio transcript event

2 participants