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: formatting
Chadpiha30f71988a6d2
diff --git a/src/helpers/audioManager.js b/src/helpers/audioManager.jsindex 6d6f93b93..68bca8034 100644--- a/src/helpers/audioManager.js+++ b/src/helpers/audioManager.js@@ -1768,7 +1768,9 @@ registerProcessor("pcm-streaming-processor", PCMStreamingProcessor);try {capture = await window.electronAPI?.captureSelectedText?.();} catch (cause) {- const error = new Error(`Selection edit could not safely read the selection: ${cause.message}`);+ const error = new Error(+ `Selection edit could not safely read the selection: ${cause.message}`+ );error.code = "SELECTION_EDIT_CAPTURE_FAILED";error.messageKey = "hooks.audioRecording.selectionEditing.unavailable";error.selectionEditFatal = true;@@ -1789,10 +1791,7 @@ registerProcessor("pcm-streaming-processor", PCMStreamingProcessor);throw error;}- const captureDisposition = getSelectionCaptureDisposition(- capture,- isAccessibilitySkipped()- );+ const captureDisposition = getSelectionCaptureDisposition(capture, isAccessibilitySkipped());if (captureDisposition === "standalone") {// No selection, or selection capture is unavailable by design (fordiff --git a/src/helpers/clipboard.js b/src/helpers/clipboard.jsindex c498eb66a..36c5f7017 100644--- a/src/helpers/clipboard.js+++ b/src/helpers/clipboard.js@@ -1524,7 +1524,9 @@ class ClipboardManager {if (linuxFastPaste && !skipFastPasteForKonsole) {const earlyIsTerminal =- windowSignals.length > 0 ? LINUX_TERMINAL_CLASSES.some((term) => signalsMatch(term)) : false;+ windowSignals.length > 0+ ? LINUX_TERMINAL_CLASSES.some((term) => signalsMatch(term))+ : false;const appendModeFlag = (args) => {if (useShiftInsert) args.push("--shift-insert");else if (earlyIsTerminal) args.push("--terminal");diff --git a/src/helpers/selectionManager.js b/src/helpers/selectionManager.jsindex 484688d19..be83d7124 100644--- a/src/helpers/selectionManager.js+++ b/src/helpers/selectionManager.js@@ -419,10 +419,7 @@ class SelectionManager {// be mistaken for the copied selection. Known limitation: a clipboard that// already held exactly the selected text reads as "no selection", and the// command falls back to standalone dictation.- const baseline = new Set([- ...beforeWrite,- ...this.clipboardManager._readClipboardTextAll(),- ]);+ const baseline = new Set([...beforeWrite, ...this.clipboardManager._readClipboardTextAll()]);const copyResult = await sendCopy();if (!copyResult?.success || !copyResult.target) {diff --git a/src/helpers/textEditMonitor.js b/src/helpers/textEditMonitor.jsindex c3cdd7f9f..69503e03b 100644--- a/src/helpers/textEditMonitor.js+++ b/src/helpers/textEditMonitor.js@@ -235,7 +235,9 @@ class TextEditMonitor extends EventEmitter {try {resolve({state: "selected",- text: Buffer.from(output.slice("SELECTED_B64:".length), "base64").toString("utf8"),+ text: Buffer.from(output.slice("SELECTED_B64:".length), "base64").toString(+ "utf8"+ ),});return;} catch (decodeError) {@@ -249,11 +251,14 @@ class TextEditMonitor extends EventEmitter {return;}- debugLogger.debug("[TextEditMonitor] Native selected-text read unavailable; trying AppleScript", {- pid,- error: error?.message || null,- stderr: stderr?.trim() || null,- });+ debugLogger.debug(+ "[TextEditMonitor] Native selected-text read unavailable; trying AppleScript",+ {+ pid,+ error: error?.message || null,+ stderr: stderr?.trim() || null,+ }+ );this._getSelectedTextViaAppleScript(pid, timeoutMs, resolve);});