Repository navigation
Stream dictation with LocalAgreement, fix mid-session stalls, refresh UI - #6
Merged
Merged
Conversation
- Replace pause-based chunking with Whisper streaming (LocalAgreement-2): re-transcribe a rolling buffer, commit words two passes agree on, trim at sentence ends, and carry prior text as the prompt so punctuation holds up. - Show unconfirmed words as ghost text at the insertion point. - Fix dictation going dead mid-session: the VAD noise floor now uses minimum statistics with capped thresholds, and the stream buffer forces progress past 15s. Recover suspended audio contexts and report a lost microphone. - Add a log file (userData/logs/lyra.log) with a 3s pipeline heartbeat, per-pass Whisper timing and VAD/capture events. - Modernize the UI: sidebar, editor, floating dictation dock, autosave fix. Co-Authored-By: Claude <noreply@anthropic.com>
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
Makes talking out a blog post feel smooth: sentences come out properly punctuated, words appear as you speak, and dictation no longer goes dead mid-session.
Streaming transcription (LocalAgreement-2)
...is stripped.Fix: dictation going dead mid-session
AudioContext(Bluetooth or AirPods switching) is resumed, and a lost mic track now shows an error.Logging
userData/logs/lyra.log, rotated at 5 MB, with:STALLED;UI
Notes for review
streaming.tsandvad.tshold the main tuning knobs:STEP,MAX_BUFFERandEND_PAUSE.Checks
pnpm typecheckpnpm smoke:ui(pnpm smokewas not run)