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(notes): reject cancelled uploads before ffmpeg conversion and server boot
Gabriel Stein53ec07519df6
diff --git a/src/helpers/parakeetServer.js b/src/helpers/parakeetServer.jsindex 4ae620417..e463a069c 100644--- a/src/helpers/parakeetServer.js+++ b/src/helpers/parakeetServer.js@@ -107,6 +107,9 @@ class ParakeetServerManager {isWavFormat: isWavFormat(audioBuffer),});+ // An already-cancelled upload skips the ffmpeg conversion entirely.+ throwIfAborted();+const { wavBuffer, filesToCleanup } = await this._ensureWav(audioBuffer);try {throwIfAborted();diff --git a/src/helpers/whisper.js b/src/helpers/whisper.jsindex e2b9af9f0..4d7ce57dc 100644--- a/src/helpers/whisper.js+++ b/src/helpers/whisper.js@@ -11,6 +11,7 @@ const {checkDiskSpace,} = require("./downloadUtils");const WhisperServerManager = require("./whisperServer");+const { createAbortError } = require("./abortError");const { getModelsDirForService } = require("./modelDirUtils");const modelRegistryData = require("../models/modelRegistryData.json");@@ -403,6 +404,11 @@ class WhisperManager {}async _runServerTranscription(audioBlob, model, language, initialPrompt = null, options = {}) {+ // An already-cancelled upload skips the server boot entirely.+ if (options.signal?.aborted) {+ throw createAbortError("whisper-server transcription cancelled");+ }+debugLogger.info("Transcription mode: SERVER", { model, language: language || "auto" });const modelPath = this.getModelPath(model);