Skip to content

fix: #3363 honor short custom voice splitter chunks#3364

Open
Aphroq wants to merge 1 commit into
openai:mainfrom
Aphroq:fix/voice-short-splitter-chunks
Open

fix: #3363 honor short custom voice splitter chunks#3364
Aphroq wants to merge 1 commit into
openai:mainfrom
Aphroq:fix/voice-short-splitter-chunks

Conversation

@Aphroq
Copy link
Copy Markdown
Contributor

@Aphroq Aphroq commented May 11, 2026

Summary

Honor non-empty chunks returned by custom voice text_splitter functions, even when they are shorter than 20 characters.

This lets custom splitters decide when text is ready for TTS and keeps turn lifecycle events balanced when the splitter consumes all buffered text before _turn_done().

Test plan

  • uv run pytest tests/voice/test_pipeline.py -q
  • bash .agents/skills/code-change-verification/scripts/run.sh

The focused voice pipeline tests pass on this branch directly. The full shell verification script was run in a local validation checkout where this branch was temporarily combined with the pending tracing shutdown fix, so the tracing atexit cleanup test would not time out.

Issue number

Closes #3363

Checks

  • I've added new tests (if relevant)
  • I've run make lint and make format
  • I've made sure tests pass

@Aphroq Aphroq changed the title Honor short custom voice splitter chunks fix: #3363 honor short custom voice splitter chunks May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Voice text splitter drops short custom chunks

1 participant