From c6f2e7c46dc06600541604b5f09567ce2701e988 Mon Sep 17 00:00:00 2001 From: Jeena Date: Fri, 18 Sep 2026 06:54:48 +0900 Subject: [PATCH] whisrs: emit dictation as one batch instead of streaming MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Streaming typed every phrase as soon as a 250ms pause came along, which made long dictations trickle in slowly and double-emitted the last phrase (once as the phrase, once in the final flush — the source of the phantom "Thank you."). With phrase_silence_ms at 5s, phrases only flush at the very end, so the whole text lands in one piece about 0.1s after the key is released. The 20s force-split still emits during very long continuous speech, so nothing is lost there. --- whisrs/config.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/whisrs/config.toml b/whisrs/config.toml index d5464f1..70aa5d0 100644 --- a/whisrs/config.toml +++ b/whisrs/config.toml @@ -15,4 +15,9 @@ audio_feedback = true [local-whisper] model_path = "/home/jeena/.local/share/whisrs/models/ggml-base.en.bin" -phrase_silence_ms = 250 \ No newline at end of file +# Batch-like: phrases only flush after 5s of silence, so text lands in one +# piece right after the key is released (0.1s decode) instead of trickling in +# while the hold key is still down — injection during a held modifier is +# unreliable. The 20s force-split still emits during very long continuous +# speech, so nothing is lost there. +phrase_silence_ms = 5000 \ No newline at end of file