Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.
JavaScript aianthropiccross-platformgeminigroqlinuxmacosnvidiaopen-sourceopenaiparakeetspeech-to-texttranscribewhisperwindows
fix(whisper): stop local transcription dropping audio at window boundaries (#2152)
Chad Pihaa1646d5c426b
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 2c21081cb..9af6d130a 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0- **Your own Deepgram key works again.** Every Deepgram connection failed with `Unexpected server response: 401`, even though the same key tested fine in Settings and worked against Deepgram directly. Deepgram accepts a raw API key only under its `Token` authorization scheme and reserves `Bearer` for the short-lived tokens OpenWhispr Cloud mints on your behalf — and the app was presenting your key as a `Bearer`. This broke bring-your-own-key dictation as well as Note Recording. (#2140, thanks @nikhilmaddirala)- **Your own AssemblyAI key works in Note Recording again.** Recordings died seconds in with `Input Duration Violation: 40.0 ms`, followed by a cascade of reconnect errors. AssemblyAI accepts audio in 50-1000 ms frames, and the app measured those frames against dictation's 16 kHz — but Note Recording streams at 24 kHz, where the same frame lasts only 33-40 ms. The frame size now follows the rate each session actually opened at, and an oversized burst — which a busy moment can produce on the system-audio channel — is split instead of being sent as one frame that trips the same limit from the other end. Dictation was never affected. (#2140, thanks @nikhilmaddirala)+- **Local transcription no longer silently drops parts of a recording.** whisper.cpp decodes audio in 30-second windows, and the app was starting whisper-server with `--no-timestamps`. Without timestamp tokens the decoder cannot report where it stopped inside a window, so whisper.cpp skipped to the next 30-second mark regardless and the speech in between was discarded — with no gap or warning, and the surviving text still reading as a complete thought. Dictation was the most exposed, but notes and meeting recordings lost the same words whenever a passage ran up to a window boundary. The 60-character segment wrap that `--no-timestamps` was there to suppress is now switched off directly, so words still never split mid-word. (#2150)## [1.10.0] - 2026-09-11diff --git a/src/helpers/whisperServer.js b/src/helpers/whisperServer.jsindex 1817b7022..d1f630324 100644--- a/src/helpers/whisperServer.js+++ b/src/helpers/whisperServer.js@@ -187,12 +187,18 @@ function buildWhisperServerArgs({// explicitly pass "auto" to enable language auto-detectionargs.push("--language", language || "auto");- // whisper.cpp v1.9.x turned token timestamps on for every request, which enables the- // server's 60-character segment wrap. split_on_word is off, so the wrap lands on a token- // boundary and breaks words mid-word ("abschalten" -> "abs" + "chalten"); we join segments- // into one string, so the break surfaces as a stray space. We only read `text`, never- // per-token timings, so turn timestamps off and the wrap goes with them. See #1348.- args.push("--no-timestamps");+ // whisper.cpp v1.9.x turned token timestamps on for every request and forces max_len=60+ // when it is unset, so the server wraps segments at 60 characters. split_on_word is off,+ // so the wrap lands on a token boundary and breaks words mid-word ("abschalten" -> "abs" ++ // "chalten"); we join segments into one string, so the break surfaces as a stray space.+ // See #1348.+ //+ // Raise max_len to switch the wrap off rather than passing --no-timestamps, which took the+ // decoder's timestamp tokens with it: without them whisper.cpp advances `seek` a full 30s+ // window no matter where the decode actually stopped, silently discarding the audio in+ // between. See #2150. A segment covers at most one 30s window; the longest measured is+ // 186 characters.+ args.push("--max-len", "4096");if (isVadActive({ vadEnabled, vadModelPath })) {const cfg = sanitizeWhisperVadConfig(vadConfig || DEFAULT_WHISPER_VAD_CONFIG);diff --git a/test/helpers/whisperServerVadArgs.test.js b/test/helpers/whisperServerVadArgs.test.jsindex 3843048d9..822b2d9f9 100644--- a/test/helpers/whisperServerVadArgs.test.js+++ b/test/helpers/whisperServerVadArgs.test.js@@ -29,7 +29,8 @@ test("buildWhisperServerArgs includes VAD flags when enabled and model path prov"8180","--language","auto",- "--no-timestamps",+ "--max-len",+ "4096","--vad","--vad-model","/tmp/ggml-silero-v5.1.2.bin",@@ -61,14 +62,24 @@ test("buildWhisperServerArgs omits VAD flags when vadModelPath is missing", () =assert.equal(args.includes("--vad-model"), false);});-test("buildWhisperServerArgs disables timestamps so segments aren't wrapped mid-word", () => {+test("buildWhisperServerArgs suppresses the segment wrap without disabling timestamps", () => {const args = WhisperServerManager.buildWhisperServerArgs({modelPath: "/tmp/model.bin",port: 8180,language: "auto",});- assert.equal(args.includes("--no-timestamps"), true);+ // The server's 60-char wrap breaks words mid-token (#1348). Raising max_len past+ // anything one 30s window can hold turns it off; the longest segment measured+ // against the bundled binary is 186 characters.+ const maxLenIndex = args.indexOf("--max-len");+ assert.notEqual(maxLenIndex, -1);+ assert.equal(Number(args[maxLenIndex + 1]) >= 4096, true);++ // Suppressing the wrap with --no-timestamps instead cost the decoder its timestamp+ // tokens, so whisper.cpp advanced `seek` a full 30s window regardless of where the+ // decode stopped and silently dropped everything in between (#2150).+ assert.equal(args.includes("--no-timestamps"), false);});test("buildWhisperServerArgs includes thread count when provided", () => {