Skip to content

fix(helpers): silence unused frames at the end of audio streams - #3880

Open
LittleYier wants to merge 1 commit into
openai:mainfrom
LittleYier:fix/audio-stream-eof-silence
Open

LittleYier wants to merge 1 commit into
openai:mainfrom
LittleYier:fix/audio-stream-eof-silence

Conversation

@LittleYier

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

Zero-fill unused frames at EOF in LocalAudioPlayer.play_stream() to avoid leaving them uninitialized before stopping. Added regression tests.

@LittleYier
LittleYier requested a review from a team as a code owner September 16, 2026 23:43
Copilot AI lite review requested due to automatic review settings September 16, 2026 23:43

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The fix has comprehensive regression coverage and no unresolved review issues.

Pull request overview

Updates LocalAudioPlayer.play_stream() to zero-fill unused audio frames at EOF and adds regression coverage.

Changes:

  • Zero-fill remaining callback frames before stopping playback.
  • Add hardware-independent EOF regression tests.
File summaries
File Description
tests/test_local_audio_player_eof.py Tests EOF behavior across stream boundary cases.
src/openai/helpers/local_audio_player.py Silences unused output frames at EOF.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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.

2 participants