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: add whiper.cpp to electron-builder
Gabriel Steinee003e6df5f4
diff --git a/electron-builder.json b/electron-builder.jsonindex ef9a5e698..4584b99c2 100644--- a/electron-builder.json+++ b/electron-builder.json@@ -24,7 +24,8 @@],"asarUnpack": ["**/node_modules/ffmpeg-static/**/*",- "**/node_modules/better-sqlite3/**/*"+ "**/node_modules/better-sqlite3/**/*",+ "resources/bin/whisper-cpp-*"],"extraResources": ["src/assets/**/*",diff --git a/src/helpers/whisper.js b/src/helpers/whisper.jsindex 11d1415e7..baa62f92f 100644--- a/src/helpers/whisper.js+++ b/src/helpers/whisper.js@@ -80,11 +80,19 @@ class WhisperManager {const candidates = [];- // Production: check resources path+ // Production: check resources path (extraResources destination)if (process.resourcesPath) {candidates.push(path.join(process.resourcesPath, "bin", platformBinaryName),- path.join(process.resourcesPath, "bin", genericBinaryName)+ path.join(process.resourcesPath, "bin", genericBinaryName),+ path.join(process.resourcesPath, "resources", "bin", platformBinaryName),+ path.join(process.resourcesPath, "resources", "bin", genericBinaryName)+ );++ // ASAR unpacked paths (for when binary is in asarUnpack)+ candidates.push(+ path.join(process.resourcesPath, "app.asar.unpacked", "resources", "bin", platformBinaryName),+ path.join(process.resourcesPath, "app.asar.unpacked", "resources", "bin", genericBinaryName));}@@ -94,12 +102,16 @@ class WhisperManager {path.join(__dirname, "..", "..", "resources", "bin", genericBinaryName));+ debugLogger.log("Checking whisper.cpp binary candidates:", candidates);+for (const candidate of candidates) {if (fs.existsSync(candidate)) {+ debugLogger.log("Found whisper.cpp binary at:", candidate);return candidate;}}+ debugLogger.log("No whisper.cpp binary found in any candidate path");return null;}