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
chore: clean up meeting detection after Windows input fix
Gabriel Stein5035aa75bb39
diff --git a/src/helpers/audioActivityDetector.js b/src/helpers/audioActivityDetector.jsindex 1699dc358..e2c76576a 100644--- a/src/helpers/audioActivityDetector.js+++ b/src/helpers/audioActivityDetector.js@@ -8,8 +8,7 @@ const debugLogger = require("./debugLogger");const execAsync = promisify(exec);const execFileAsync = promisify(execFile);-// Windows uses tasklist (process spawn) which is heavier than macOS native binary / Linux pactl,-// so poll less frequently to avoid input pipeline stalls from repeated process spawning.+// Windows uses tasklist (process spawn) per check; poll less frequently to reduce overhead.const CHECK_INTERVAL_MS = process.platform === "win32" ? 15 * 1000 : 5 * 1000;const SUSTAINED_THRESHOLD_CHECKS = process.platform === "win32" ? 2 : 3;const COOLDOWN_MS = 30 * 60 * 1000;@@ -193,10 +192,6 @@ class AudioActivityDetector extends EventEmitter {}async _checkWin32() {- // Use tasklist instead of PowerShell to avoid expensive .NET runtime startup- // that causes system-wide input stalls (mouse freezes) every poll cycle.- // Note: tasklist /FI uses AND logic for multiple filters, so we use a single- // unfiltered call and check the output for any matching process name.try {const { stdout } = await execAsync("tasklist /NH /FO CSV", EXEC_OPTS);const lower = stdout.toLowerCase();diff --git a/src/helpers/meetingProcessDetector.js b/src/helpers/meetingProcessDetector.jsindex d52f4c1b6..044476106 100644--- a/src/helpers/meetingProcessDetector.js+++ b/src/helpers/meetingProcessDetector.js@@ -10,10 +10,6 @@ const EXEC_OPTS = { timeout: 3000, encoding: "utf8" };async function hasProcess(name) {try {- if (process.platform === "win32") {- const { stdout } = await execAsync(`tasklist | findstr /I "${name}"`, EXEC_OPTS);- return stdout.trim().length > 0;- }await execAsync(`pgrep -f "${name}"`, EXEC_OPTS);return true;} catch {@@ -58,8 +54,7 @@ const MEETING_APPS = {},{ processKey: "webex", appName: "Webex", check: () => hasProcess("webexmeetingsapp") },],- // Windows: uses a single tasklist call in _pollWin32() instead of per-app checks- // to minimize process spawning and avoid input pipeline stalls (mouse freezes).+ // Windows: single tasklist call in _pollWin32() to avoid per-app process spawns.win32: [{ processKey: "zoom", appName: "Zoom", imageName: "cpthost.exe" },{ processKey: "teams", appName: "Microsoft Teams", imageName: "ms-teams_modulehost.exe" },@@ -140,10 +135,6 @@ class MeetingProcessDetector extends EventEmitter {}}- /**- * Windows: single tasklist call to check all meeting processes at once,- * avoiding multiple process spawns that cause input pipeline stalls.- */async _pollWin32() {const apps = MEETING_APPS.win32 || [];let tasklistOutput = "";