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(python): correct download timeout message to 10min, remove unused virtualenv from Arch, rename shadowed process variable
Gabriel Stein6a8a0ac70cf6
diff --git a/src/helpers/pythonInstaller.js b/src/helpers/pythonInstaller.jsindex cfada9333..5e1ab90dc 100644--- a/src/helpers/pythonInstaller.js+++ b/src/helpers/pythonInstaller.js@@ -271,7 +271,7 @@ class PythonInstaller {progressCallback({ stage: "Installing Python via pacman...", percentage: 30 });}- await runCommand("sudo", ["pacman", "-S", "--noconfirm", "python", "python-pip", "python-virtualenv"], { timeout: TIMEOUTS.INSTALL });+ await runCommand("sudo", ["pacman", "-S", "--noconfirm", "python", "python-pip"], { timeout: TIMEOUTS.INSTALL });if (progressCallback) {progressCallback({ stage: "Python installation complete!", percentage: 100 });diff --git a/src/helpers/whisper.js b/src/helpers/whisper.jsindex ef43ac206..562da5461 100644--- a/src/helpers/whisper.js+++ b/src/helpers/whisper.js@@ -1360,7 +1360,7 @@ class WhisperManager {downloadProcess.kill("SIGKILL");}}, 5000);- reject(new Error("Model download timed out (20 minutes)"));+ reject(new Error("Model download timed out (10 minutes)"));}, TIMEOUTS.DOWNLOAD);downloadProcess.on("close", (code) => {@@ -1435,19 +1435,19 @@ class WhisperManager {const fullArgs = [whisperScriptPath, ...args];return new Promise((resolve, reject) => {- const process = spawn(pythonCmd, fullArgs);+ const childProcess = spawn(pythonCmd, fullArgs);let stdout = "";let stderr = "";- process.stdout.on("data", (data) => {+ childProcess.stdout.on("data", (data) => {stdout += data.toString();});- process.stderr.on("data", (data) => {+ childProcess.stderr.on("data", (data) => {stderr += data.toString();});- process.on("close", (code) => {+ childProcess.on("close", (code) => {if (code === 0) {try {resolve(JSON.parse(stdout));@@ -1461,7 +1461,7 @@ class WhisperManager {}});- process.on("error", (error) => {+ childProcess.on("error", (error) => {reject(new Error(`${operationName} error: ${error.message}`));});});