feat(voice): speak assistant text while it streams - #135
Draft
johnmatthewtennant wants to merge 6 commits into
Draft
feat(voice): speak assistant text while it streams#135johnmatthewtennant wants to merge 6 commits into
johnmatthewtennant wants to merge 6 commits into
Conversation
johnmatthewtennant
marked this pull request as ready for review
August 19, 2026 22:12
johnmatthewtennant
marked this pull request as draft
August 20, 2026 01:43
johnmatthewtennant
force-pushed
the
jtennant/speak-streaming-assistant-text
branch
3 times, most recently
from
August 20, 2026 02:40
b58163e to
ac4ef5a
Compare
added 6 commits
August 19, 2026 22:43
johnmatthewtennant
force-pushed
the
jtennant/speak-streaming-assistant-text
branch
from
August 20, 2026 02:43
ac4ef5a to
46aabf3
Compare
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
Implements the conversation side of the duplex stream: streaming LLM response -> TTS.
As ACP text deltas arrive, Berd appends the raw text to the Pocket utterance stream instead of waiting for the assistant message to complete. The backend owns sentence and token-limit segmentation. Tool boundaries flush speakable text without ending the utterance; response completion finishes it.
This is distinct from PR #133, which streams Pocket PCM synthesis chunks to playback and overlaps later synthesis with already-playing audio.
Reviewer-reproducible examples