feat(voice): stream Pocket audio during synthesis - #133
Merged
Conversation
johnmatthewtennant
marked this pull request as ready for review
August 19, 2026 21:55
johnmatthewtennant
marked this pull request as draft
August 20, 2026 01:43
johnmatthewtennant
force-pushed
the
jtennant/stream-pocket-tts-audio
branch
2 times, most recently
from
August 20, 2026 11:52
c6b83a0 to
63deda0
Compare
johnmatthewtennant
marked this pull request as ready for review
August 20, 2026 14:54
kalvinnchau
previously approved these changes
Aug 20, 2026
johnmatthewtennant
dismissed
kalvinnchau’s stale review
August 20, 2026 18:18
The merge-base changed after approval.
johnmatthewtennant
force-pushed
the
jtennant/stream-pocket-tts-audio
branch
from
August 20, 2026 18:30
0462f0e to
6e60999
Compare
morgmart
approved these changes
Aug 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Pocket TTS streams synthesized audio chunks into a single player as decoder output becomes available. Synthesis and playback run concurrently within one utterance.
The backend accepts incremental text, releases the first complete sentence immediately, and forms later model-safe chunks within Pocket's 50-token input limit. Cancellation and delivery status remain scoped to the whole utterance rather than its internal text or audio chunks.
This is audio-output streaming from Pocket into playback. Streaming an LLM response into the TTS input is a separate path.
Reviewer-reproducible examples