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
refactor(dictation): tidy VAD resolver and count the echo-rescue decode
Gabriel Steinbb4c87a6b53b
diff --git a/src/helpers/audioManager.js b/src/helpers/audioManager.jsindex 84e06d2be..dfd353371 100644--- a/src/helpers/audioManager.js+++ b/src/helpers/audioManager.js@@ -1704,6 +1704,9 @@ registerProcessor("pcm-streaming-processor", PCMStreamingProcessor);"audio");result = retry;+ timings.transcriptionProcessingDurationMs = Math.round(+ performance.now() - transcriptionStart+ );}const rawText = result.text;const reasoningStart = performance.now();diff --git a/src/helpers/whisperVadConfig.js b/src/helpers/whisperVadConfig.jsindex bded6980f..8cbc72901 100644--- a/src/helpers/whisperVadConfig.js+++ b/src/helpers/whisperVadConfig.js@@ -22,14 +22,13 @@ function sanitizeWhisperVadConfig(input = {}) {}function resolveContextSileroEnabled(settings = {}, context = "dictation") {- const resolved = settings || {};// Dictation is opt-in: VAD on pause-heavy dictations can strip the speech and// leave Whisper decoding near-silence seeded with the dictionary prompt, which// replaces the transcript with dictionary words (#1454). Long-form contexts// (notes, meetings) keep VAD to skip extended silence.- if (context === "dictation") return resolved.dictationSileroEnabled === true;- if (context === "noteRecording") return resolved.noteRecordingSileroEnabled !== false;- if (context === "meeting") return resolved.meetingSileroEnabled !== false;+ if (context === "dictation") return settings?.dictationSileroEnabled === true;+ if (context === "noteRecording") return settings?.noteRecordingSileroEnabled !== false;+ if (context === "meeting") return settings?.meetingSileroEnabled !== false;return true;}