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(windows): hide console windows for AEC, text-monitor, and mic-listener
stantheman01285d4fbb2e1ca1
diff --git a/src/helpers/audioActivityDetector.js b/src/helpers/audioActivityDetector.jsindex 883adc000..84b957f17 100644--- a/src/helpers/audioActivityDetector.js+++ b/src/helpers/audioActivityDetector.js@@ -262,6 +262,7 @@ class AudioActivityDetector extends EventEmitter {// stdin must be "pipe" — the Windows binary monitors stdin for parent deathconst child = spawn(binaryPath, ["--exclude-pid", String(process.pid)], {stdio: ["pipe", "pipe", "pipe"],+ windowsHide: true,});this._listenerProcess = child;diff --git a/src/helpers/meetingAecManager.js b/src/helpers/meetingAecManager.jsindex 081a13b05..d2e6e5890 100644--- a/src/helpers/meetingAecManager.js+++ b/src/helpers/meetingAecManager.js@@ -78,6 +78,7 @@ class MeetingAecManager {const child = spawn(binaryPath, ["--sample-rate", String(SAMPLE_RATE)], {stdio: ["pipe", "pipe", "pipe"],+ windowsHide: true,});this.process = child;diff --git a/src/helpers/textEditMonitor.js b/src/helpers/textEditMonitor.jsindex b22458565..349710ca3 100644--- a/src/helpers/textEditMonitor.js+++ b/src/helpers/textEditMonitor.js@@ -247,6 +247,7 @@ class TextEditMonitor extends EventEmitter {this.process = spawn(command, args, {stdio: ["pipe", "pipe", "pipe"],+ windowsHide: true,});// Send original text via stdin@@ -391,6 +392,7 @@ class TextEditMonitor extends EventEmitter {this.process = spawn(command, [...args, String(targetPid)], {stdio: ["pipe", "pipe", "pipe"],+ windowsHide: true,});this.process.stdin.write(originalText + "\n");diff --git a/test/helpers/windows-helper-spawn-hide.test.js b/test/helpers/windows-helper-spawn-hide.test.jsnew file mode 100644index 000000000..5c6763f80--- /dev/null+++ b/test/helpers/windows-helper-spawn-hide.test.js@@ -0,0 +1,32 @@+const test = require("node:test");+const assert = require("node:assert/strict");+const fs = require("fs");+const path = require("path");++const ROOT = path.join(__dirname, "../..");++function read(rel) {+ return fs.readFileSync(path.join(ROOT, rel), "utf8");+}++test("meeting AEC helper spawn sets windowsHide", () => {+ const src = read("src/helpers/meetingAecManager.js");+ assert.match(+ src,+ /spawn\(binaryPath,\s*\["--sample-rate"[\s\S]*?windowsHide:\s*true/+ );+});++test("text edit monitor spawns set windowsHide", () => {+ const src = read("src/helpers/textEditMonitor.js");+ const hides = (src.match(/windowsHide:\s*true/g) || []).length;+ assert.ok(hides >= 2, `expected both monitor spawns to set windowsHide, got ${hides}`);+});++test("Windows mic-listener spawn sets windowsHide", () => {+ const src = read("src/helpers/audioActivityDetector.js");+ assert.match(+ src,+ /_tryEventDrivenWin32[\s\S]*?spawn\(binaryPath,\s*\["--exclude-pid"[\s\S]*?windowsHide:\s*true/+ );+});