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
style(whisper): rewrap the GPU opt-out comment and drop a redundant test note
Gabriel Steinb7dd0bc1a74b
diff --git a/src/helpers/whisper.js b/src/helpers/whisper.jsindex b4869215c..d94afd4d4 100644--- a/src/helpers/whisper.js+++ b/src/helpers/whisper.js@@ -80,13 +80,12 @@ class WhisperManager {// instead of after an app restart. A pack on disk implies intent: the user// downloaded it, so it engages unless WHISPER_*_ENABLED is explicitly set to// "false" (case-insensitive; an opt-out that survives without deleting the- // pack). Requiring- // the flag to be present stranded downloaded packs on silent CPU whenever- // the .env line was lost (#1340). WHISPER_GPU_FAILED lists backends that- // crashed on this machine (persisted by ipcHandlers when the server falls- // back to CPU); they stay off until the user retries or re-downloads, so a- // doomed backend isn't re-attempted — and its model reload re-paid — on- // every launch.+ // pack). Requiring the flag to be present stranded downloaded packs on+ // silent CPU whenever the .env line was lost (#1340). WHISPER_GPU_FAILED+ // lists backends that crashed on this machine (persisted by ipcHandlers+ // when the server falls back to CPU); they stay off until the user retries+ // or re-downloads, so a doomed backend isn't re-attempted — and its model+ // reload re-paid — on every launch.resolveGpuStartOptions() {const failed = resolveFailedGpuBackends(process.env.WHISPER_GPU_FAILED);const useCuda =diff --git a/test/helpers/whisperGpuResolve.test.js b/test/helpers/whisperGpuResolve.test.jsindex 8d40f3adf..4bc2e0880 100644--- a/test/helpers/whisperGpuResolve.test.js+++ b/test/helpers/whisperGpuResolve.test.js@@ -81,8 +81,6 @@ test("clearing the failure re-enables the backend (Retry)", () => {});test("a downloaded pack with a lost env flag still engages (#1340)", () => {- // A pack on disk implies intent: losing the WHISPER_*_ENABLED line from .env- // must not strand the pack on silent CPU.const vulkanOnly = managerWith({ vulkanDownloaded: true });assert.deepEqual(vulkanOnly.resolveGpuStartOptions(), { useCuda: false, useVulkan: true });