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
Merge main into feat/linux-push-to-talk
xAlcahest2641f028faca
diff --cc main.jsindex b073cb1fe,81eef3fb0..0dd470ae4--- a/main.js+++ b/main.js@@@ -306,9 -308,10 +310,11 @@@ function initializeCoreManagers()updateManager = new UpdateManager();updateManager.setWindowManager(windowManager);windowsKeyManager = new WindowsKeyManager();+ linuxKeyManager = new LinuxKeyManager();textEditMonitor = new TextEditMonitor();audioTapManager = new AudioTapManager();+ linuxPortalAudioManager = new LinuxPortalAudioManager();+ meetingAecManager = new MeetingAecManager();windowManager.textEditMonitor = textEditMonitor;// IPC handlers must be registered before window content loadsdiff --cc package.jsonindex 6fe217489,3b2fc03c9..0ff804b7e--- a/package.json+++ b/package.json@@@ -18,15 -18,15 +19,15 @@@"compile:media-remote": "node scripts/build-media-remote.js","compile:mic-listener": "node scripts/build-macos-mic-listener.js","compile:audio-tap": "node scripts/build-macos-audio-tap.js",- "compile:native": "npm run compile:globe && npm run compile:fast-paste && npm run compile:winkeys && npm run compile:linuxkeys && npm run compile:winpaste && npm run compile:linux-paste && npm run compile:text-monitor && npm run compile:media-remote && npm run compile:mic-listener && npm run compile:audio-tap",- "prestart": "npm run compile:native && npm run download:qdrant && npm run download:embedding-model",- "compile:native": "npm run compile:globe && npm run compile:fast-paste && npm run compile:winkeys && npm run compile:winpaste && npm run compile:linux-paste && npm run compile:linux-system-audio && npm run compile:text-monitor && npm run compile:media-remote && npm run compile:mic-listener && npm run compile:audio-tap",++ "compile:native": "npm run compile:globe && npm run compile:fast-paste && npm run compile:winkeys && npm run compile:linuxkeys && npm run compile:winpaste && npm run compile:linux-paste && npm run compile:linux-system-audio && npm run compile:text-monitor && npm run compile:media-remote && npm run compile:mic-listener && npm run compile:audio-tap",+ "prestart": "npm run compile:native && npm run download:meeting-aec-helper && npm run download:qdrant && npm run download:embedding-model","start": "electron .",- "predev": "npm run compile:native && npm run download:qdrant && npm run download:embedding-model",+ "predev": "npm run compile:native && npm run download:meeting-aec-helper && npm run download:qdrant && npm run download:embedding-model","dev": "concurrently -k -r \"npm:dev:renderer\" \"npm:dev:main\"",- "predev:main": "npm run compile:native && npm run download:qdrant && npm run download:embedding-model",+ "predev:main": "npm run compile:native && npm run download:meeting-aec-helper && npm run download:qdrant && npm run download:embedding-model","dev:main": "cross-env NODE_ENV=development node scripts/run-electron.js --dev","dev:renderer": "cd src && vite",- "prebuild": "npm run compile:native && npm run download:whisper-cpp && npm run download:llama-server && npm run download:sherpa-onnx && npm run download:qdrant && npm run download:embedding-model -- --for-build",+ "prebuild": "npm run compile:native && npm run download:whisper-cpp && npm run download:llama-server && npm run download:sherpa-onnx && npm run download:qdrant && npm run download:meeting-aec-helper && npm run download:embedding-model -- --for-build && npm run download:diarization-models -- --output-dir resources/bin/diarization-models","build": "cd src && vite build && cd .. && electron-builder","postinstall": "electron-builder install-app-deps","build:renderer": "cd src && vite build",diff --cc src/helpers/ipcHandlers.jsindex b5e121eb3,661730e9d..f41c15895--- a/src/helpers/ipcHandlers.js+++ b/src/helpers/ipcHandlers.js@@@ -1612,23 -1674,15 +1675,21 @@@ class IPCHandlersthis.windowsKeyManager.stop();}+ // On Linux, stop the Linux key listener+ if (process.platform === "linux" && this.linuxKeyManager) {+ debugLogger.log("[IPC] Stopping Linux key listener for hotkey capture mode");+ this.linuxKeyManager.stop();+ }+- // On GNOME, unregister all native keybindings during capture+ // On GNOME Wayland, unregister the keybinding during captureif (hotkeyManager.isUsingGnome() && hotkeyManager.gnomeManager) {- for (const slot of [...hotkeyManager.gnomeManager.registeredSlots]) {- debugLogger.log(`[IPC] Unregistering GNOME keybinding (slot "${slot}") for capture mode`);- await hotkeyManager.gnomeManager.unregisterKeybinding(slot).catch((err) => {- debugLogger.warn(`[IPC] Failed to unregister GNOME slot "${slot}":`, err.message);- });- }+ debugLogger.log("[IPC] Unregistering GNOME keybinding for hotkey capture mode");+ await hotkeyManager.gnomeManager.unregisterKeybinding().catch((err) => {+ debugLogger.warn("[IPC] Failed to unregister GNOME keybinding:", err.message);+ });}- // On Hyprland, unregister the keybinding during capture+ // On Hyprland Wayland, unregister the keybinding during captureif (hotkeyManager.isUsingHyprland() && hotkeyManager.hyprlandManager) {debugLogger.log("[IPC] Unregistering Hyprland keybinding for hotkey capture mode");await hotkeyManager.hyprlandManager.unregisterKeybinding().catch((err) => {@@@ -1687,23 -1729,7 +1736,23 @@@}}+ if (process.platform === "linux" && this.linuxKeyManager) {+ const activationMode = this.windowManager.getActivationMode();+ const needsListener =+ effectiveHotkey &&+ !isGlobeLikeHotkey(effectiveHotkey) &&+ (activationMode === "push" ||+ isModifierOnlyHotkey(effectiveHotkey) ||+ isRightSideModifier(effectiveHotkey));+ if (needsListener) {+ debugLogger.log(`[IPC] Restarting Linux key listener for hotkey: ${effectiveHotkey}`);+ this.linuxKeyManager.start(effectiveHotkey);+ } else {+ this.linuxKeyManager.stop();+ }+ }+- // On GNOME, re-register the keybinding with the effective hotkey+ // On GNOME Wayland, re-register the keybinding with the effective hotkeyif (hotkeyManager.isUsingGnome() && hotkeyManager.gnomeManager && effectiveHotkey) {const gnomeHotkey = GnomeShortcutManager.convertToGnomeFormat(effectiveHotkey);debugLogger.log(diff --cc src/stores/settingsStore.tsindex 2c35029eb,302e81a4a..6f991a664--- a/src/stores/settingsStore.ts+++ b/src/stores/settingsStore.ts@@@ -435,10 -595,12 +595,10 @@@ export const useSettingsStore = create<},setActivationMode: (mode: "tap" | "push") => {- // Linux has no native key listener for push-to-talk — force tap- const effective = isBrowser && window.electronAPI?.getPlatform?.() === "linux" ? "tap" : mode;- if (isBrowser) localStorage.setItem("activationMode", effective);- set({ activationMode: effective });+ if (isBrowser) localStorage.setItem("activationMode", mode);+ set({ activationMode: mode });if (isBrowser) {-- window.electronAPI?.notifyActivationModeChanged?.(effective);++ window.electronAPI?.notifyActivationModeChanged?.(mode);}},