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 remote-tracking branch 'origin/main' into feat/linux-push-to-talk
Alcahest0d36aa304ee3
diff --cc electron-builder.jsonindex e6f00595c,cfc3f4dd0..c5443598e--- a/electron-builder.json+++ b/electron-builder.json@@@ -108,7 -105,7 +109,8 @@@"llama-server-*","sherpa-onnx-*","qdrant-*",+ "linux-key-listener*",+ "meeting-aec-helper-*","windows-key-listener*","windows-mic-listener*","windows-text-monitor*",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 e30913475,661730e9d..6576554cd--- a/src/helpers/ipcHandlers.js+++ b/src/helpers/ipcHandlers.js@@@ -1616,49 -1674,24 +1682,39 @@@ class IPCHandlersthis.windowsKeyManager.stop();}- // On GNOME Wayland, unregister the keybinding during capture+ // 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 captureif (hotkeyManager.isUsingGnome() && hotkeyManager.gnomeManager) {- 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);- });+ 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);+ });+ }}- // 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) => {debugLogger.warn("[IPC] Failed to unregister Hyprland keybinding:", err.message);});}-- // On KDE, unregister all native keybindings during capture- if (hotkeyManager.isUsingKDE() && hotkeyManager.kdeManager) {- for (const slot of [...hotkeyManager.kdeManager.registeredSlots]) {- debugLogger.log(`[IPC] Unregistering KDE keybinding (slot "${slot}") for capture mode`);- await hotkeyManager.kdeManager.unregisterKeybinding(slot).catch((err) => {- debugLogger.warn(`[IPC] Failed to unregister KDE slot "${slot}":`, err.message);- });- }- }} else {// Exiting capture mode - re-register globalShortcut if not already registered- if (effectiveHotkey && !usesNativeListener(effectiveHotkey)) {+ // Skip for KDE/GNOME/Hyprland — updateHotkey handles re-registration via native path+ const usesNativePath =+ hotkeyManager.isUsingKDE() ||+ hotkeyManager.isUsingGnome() ||+ hotkeyManager.isUsingHyprland();+ if (effectiveHotkey && !usesNativeListener(effectiveHotkey) && !usesNativePath) {const { globalShortcut } = require("electron");const accelerator = effectiveHotkey.startsWith("Fn+")? effectiveHotkey.slice(3)@@@ -1772,21 -1756,7 +1828,13 @@@return { success: true };});- ipcMain.handle("get-active-dictation-key", () => {- return this.windowManager.hotkeyManager.getCurrentHotkey() || "";- });-- ipcMain.handle("get-effective-default-hotkey", () => {- return this.windowManager.hotkeyManager.getEffectiveDefaultHotkey();- });-ipcMain.handle("get-hotkey-mode-info", async () => {+ const isUsingNativeShortcut = this.windowManager.isUsingNativeShortcutHotkeys();+ const supportsPushToTalk =+ process.platform === "linux"+ ? this.linuxKeyManager?.isAvailable?.() === true+ : !isUsingNativeShortcut;+return {isUsingGnome: this.windowManager.isUsingGnomeHotkeys(),isUsingHyprland: this.windowManager.isUsingHyprlandHotkeys(),