Repository navigation
Conversation
The chat form's main button on an empty message is now voice mode (a waveform); the microphone steps back beside it and records as before. Voice mode is a full-screen conversation: - it listens with the browser's echo cancellation on, shows what is said as it is transcribed, and sends it after a pause of about a second; - the reply streams on screen and is read aloud sentence by sentence through /v1/audio/speech, by the chat model when it speaks or else by another model that does (router mode), each word lit as it is spoken; - speaking over the reply, or tapping the microphone, stops it and listens; the microphone and the speaker can be muted, and with no model that speaks the replies are shown without being read. The voice engine gains synthesizeSpeech(), readAloudPieces() and ReplyReader; models report output_modalities, so the app knows which can speak. Assisted-by: Claude (Opus 5.5 Medium) (cherry picked from commit 8c580d0)
- Settings > Voice > Reading speed: 1x to 2x, 1.25x by default, with the voice's pitch kept. - The reply's first piece may end at a clause (a comma, colon or dash after 24 characters), so the voice starts before the first sentence is complete; later pieces stay whole sentences. - The next two pieces are fetched while one plays. Assisted-by: Claude (Opus 5.5 Medium) (cherry picked from commit e71055f)
…een pieces - A sound over a reply read aloud no longer stops it: the reading pauses and voice mode listens. Speech within a second, judged against the room's noise measured before, confirms the interruption; otherwise the reply goes on from where it paused. The reply's own echo or a noise used to stop it and leave the microphone listening. Tapping the microphone still interrupts outright. - Read-aloud clips lose the silence the speech model puts around them (LFM3-Omni: about 140 ms before, 240 ms after), down to 40 ms and 90 ms, so pieces, and paragraphs after an empty line, follow closely. Assisted-by: Claude (Opus 5.5 Medium) (cherry picked from commit 653f357)
The voice mode screen no longer scrolls to the bottom as a reply streams. A new exchange scrolls into view as it starts; then, while the reply is read aloud, the page keeps the word being read in view, moving only when it nears the bottom. With the speaker off, or no model that speaks, it stays where it is. Assisted-by: Claude (Opus 5.5 Medium) (cherry picked from commit b64182c)
Voice mode shows no chat messages, so a reply that wanted to use a tool, or an agentic loop asking to go on, waited on a card nobody could see. Both cards now show above the microphone: they rise a little from below as they fade in, and sink back as they fade out once answered (no motion with reduced motion). Escape in the card's allow menu closes the menu, not voice mode. Assisted-by: Claude (Opus 5.5 Medium) (cherry picked from commit 91d1dc0)
An interruption, by voice or by tapping the microphone, now holds the reply where it paused instead of stopping it. Muting the microphone, or a turn in which nothing is understood, lets it go on from there; a turn with words drops it, stopping its reading and generation, and is sent. Assisted-by: Claude (Opus 5.5 Medium) (cherry picked from commit 704dd5f)
Space turns and the user's words from the reply further apart, most on phones. A fade from the background over the bottom fifth of the screen hides what is generated ahead of the reading, and the scroll keeps the spoken word above it. Assisted-by: Claude (Opus 5.5 Medium) (cherry picked from commit e673c84)
While a reply is read aloud, a click or tap on one of its words moves the voice there, back or ahead, and reading goes on from it. A sentence already fetched plays at once, from about where the word falls in it: the reply's speech is kept until the next one. A reply held for an interruption goes on from the word too. Assisted-by: Claude (Opus 5.5 Medium) (cherry picked from commit 95d93e6)
Assisted-by: Claude (Opus 5.5 Medium)
Assisted-by: Claude (Opus 5.5 Medium)
Voice mode's turns follow the Boost quiet speech setting, as dictation and voice messages do. Assisted-by: Claude (Opus 5.5 Medium)
Voice mode built its own copy of the server context and of the Voice settings' capture and transcribe options. It now asks VoiceService for them, as the chat form does, passing only its own echo-cancelled microphone constraints. Assisted-by: Claude (Opus 5.5 Medium)
Speech over a reply is now told from the room by the same SpeechDetector as the turns, and the microphone it listens on is the one picked in the Voice settings rather than the system default. Assisted-by: Claude (Opus 5.5 Medium)
Upstream now sets all text through the type roles (text-heading, text-title, text-body-sm ...) instead of Tailwind's sizes; voice mode's greeting, transcript and status follow. Assisted-by: Claude (Opus 5.5 Medium)
This branch has not been deployed
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.
Overview
Talk with the model hands-free: voice mode listens, sends what you say when you pause, and reads the reply aloud while it appears on screen, word by word. The chat form's main button on an empty message opens it; the microphone beside it keeps recording into the message.
Additional information
Replaces #65, which GitHub could not reopen after a rebase. Based on master: voice messages and dictation (#64) are upstream since ggml-org#32531, and the reasoning effort's move into the model picker, which makes room for the voice buttons, since ggml-org#32632. Like voice messages it asks the local server; where the servers work (#35) is there too, the develop integration sends voice requests to the active one.
Known gaps:
--models-max 1) swaps them every turn.How it works
chatStore.sendMessage.readAloudPieces, list numbers are not sentence ends, markdown marks are dropped), speaks each throughPOST /v1/audio/speechand plays them in order, fetching the next one while the current one plays. Itsspokencount follows playback, and VoiceSpokenText lights the reply up to it.architecture.output_modalitiesincludesaudio, else (router mode) the first model that does. None: replies are shown, not read, and the speaker button says why.Testing
ui/apps/chat:npm run check(0 errors) andnpm run lintpass, with 1035 unit, 373 client and 319 story tests.readAloudPiecesandtoSpeech. New client tests:ReplyReader.seek(ahead, back into a sentence already read, nothing when muted or done) and VoiceSpokenText's word picks.llama-serverwith LFM3-Omni-2B:/v1/modelsreportsoutput_modalities: ["text", "audio"];/v1/audio/speechread a sentence (3.2 s of audio in 0.6 s), which transcribed back to the same words. Voice mode opens from the composer and shows its greeting, status, microphone, model picker, speaker and close controls; the microphone itself was blocked in the test browser.Requirements
Claude (Opus 5.5 Medium)