Skip to content

Streaming: cut long pauses before the dictation stream hears them - #367

Merged
thdxr merged 1 commit into
devfrom
outside-pr-fixes
Oct 29, 2026
Merged

thdxr merged 1 commit into
devfrom
outside-pr-fixes

Conversation

@thdxr

@thdxr thdxr commented Oct 29, 2026

Copy link
Copy Markdown
Member

Fixes the dropped-word defect from #324, diagnosed by @ElliottH in #338: after a pause longer than Parakeet Unified English's 5.6 s left context, the buffered stream can drop the first word that follows, and the paste keeps the loss.

PauseCap in transcription_engine.rs wraps a dictation stream and feeds it only the first 2.5 s and last 0.3 s of each pause (20 ms frames pause_segmenter::SpeechFrames calls not speech). A trailing pause keeps only its head. The clip, fed, the overfed/empty/failed fallbacks and /streams are unchanged. "finished live stream" logs pauses_dropped_ms. pause_segmenter now compiles on every OS.

Check: a_dictation_stream_hears_only_the_ends_of_long_pauses (passes on Linux). Not re-measured on a real model.

Written in-house from the diagnosis in #338; credit to @ElliottH (Co-authored-by).

— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant