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
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

1 participant