Repository navigation
Conversation
The defect recorded in anomalyco#324: Parakeet's buffered streaming drops the first word after a pause longer than its 5.6 s left context, and the paste keeps the loss. The engine now feeds the native stream only the first 1.7 s and last 0.3 s of each pause (20 ms frames that pause_segmenter's SpeechFrames calls not speech), in drive_stream's feed path and the finish's remainder. The capture, the clip, `fed`, live text, and the fallbacks are unchanged; /streams is untouched. HEX_STREAM_PAUSES=0 turns it off. See anomalyco#324 and the feature map. Co-Authored-By: Claude Opus 5.5 <[email protected]>
ElliottH
marked this pull request as draft
October 29, 2026 02:39
A 1.7 s head is shorter than a chunk and its lookahead (2.08 s), so the word before a long pause could stay undecoded, and missing from the live text, until speech resumed. A recorded dictation replayed on Metal showed it at 21.3 s with 1.7 s and at 12.5 s, during the pause, with 2.5 s; the synthetic sweep stays at 0 drops (0/88). Co-Authored-By: Claude Opus 5.5 <[email protected]>
ElliottH
marked this pull request as ready for review
October 29, 2026 02:56
thdxr
added a commit
that referenced
this pull request
Oct 29, 2026
…) (#367) A buffered Parakeet stream can drop the first word after a pause longer than its 5.6 s left context (#324). The engine now feeds a dictation stream only the first 2.5 s and last 0.3 s of each pause; the clip and its offline fallback are unchanged. Co-authored-by: ElliottH <[email protected]>
Member
|
Thank you, @ElliottH, for a really thorough diagnosis! The investigation in #324 and the measurements here made the fix straightforward. Hex now writes all of its changes in-house, so we're closing outside pull requests. The fix landed in #367 with credit to you (Co-authored-by): a dictation stream now hears only the first 2.5 s and last 0.3 s of each pause, using your analysis. Issues with diagnoses like this one are always welcome. — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊 |
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
Fixes the dropped-word defect recorded in #324: after a pause longer than Parakeet Unified English's 5.6 s left context, the buffered stream can drop the next sentence's first word, for example "successfully. I now" becoming "successfully now". The paste keeps the loss, because a stream that produced text is never retranscribed. NeMo's reference buffered streaming does the same on the same audio. The full investigation is in #324 and the feature map.
The engine now caps the pauses a dictation stream's native stream hears.
PauseCapintranscription_engine.rswraps the stream indrive_stream.pause_segmenter::SpeechFramescalls not speech, the native stream gets the first 2.5 s and the last 0.3 s. The middle is dropped. The 0.3 s tail is held back and released just before speech resumes.fed(still counted in clip samples), the finish's remainder and the overfed, empty and failed fallbacks,LiveStream, and the macOS, Linux and Windows capture loops./streams(drive_yielding) is untouched.HEX_STREAM_PAUSES=0turns it off.pauses_dropped_msfield.Limits: speech within 12 dB of the room counts as pause.
SpeechFrames' noise floor rises only about 3 dB a second, so room noise that gets louder mid-dictation counts as speech for up to about 10 s, and that pause isn't capped. In that case the dictation behaves exactly as today; it can't get worse.Test plan
scripts/checkon macOS: 1,837 tests. This needs fix(tests): give mouse_hotkeys the capture shortcut fields #337, which fixesdev's test build; until it merges, this PR's test build fails the same waydevdoes. New tests:speech_and_pauses_under_two_seconds_reach_the_stream_whole: speech, whispers, and pauses under 2 s are bit-identical, over quiet and −40 dBFS rooms.long_pauses_reach_the_stream_capped_with_their_ends: digital silence, a −50 dBFS floor, and a −40 dBFS room are capped exactly, and a trailing pause keeps only its head.a_dictation_stream_hears_long_pauses_capped_and_finishes_with_the_clip: throughdrive_stream, the finish feeds the remainder and the clip is unchanged.Real model on Metal (M3 Pro, Unified English Q8), via
metal_stream_tracks_offline_transcriptionwith the newHEX_STREAM_LEADS_MS, every result from the stream:Rerun with the 2.5 s head: digital silence and noise throughout, 2–14 s gaps, 0/88, every result from the stream.
A recorded physical-microphone dictation (a 10 s pause), replayed on Metal:
By hand in
Hex Test.appwith a physical microphone, with the 1.7 s head: five dictations with 10–18 s pauses all kept the second sentence's first word.Not verified: Linux and Windows builds (the change is shared engine code, compiled only on macOS), Vulkan, and real rooms beyond one.
🤖 Generated with Claude Code