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
feat: add toggle to disable automatic pasting after dictation
Gabriel Stein41f2567c5fca
diff --git a/src/components/SettingsPage.tsx b/src/components/SettingsPage.tsxindex 826730953..1572ca004 100644--- a/src/components/SettingsPage.tsx+++ b/src/components/SettingsPage.tsx@@ -723,6 +723,8 @@ export default function SettingsPage({ activeSection = "general" }: SettingsPagesetPauseMediaOnDictation,showTranscriptionPreview,setShowTranscriptionPreview,+ autoPasteEnabled,+ setAutoPasteEnabled,keepTranscriptionInClipboard,setKeepTranscriptionInClipboard,floatingIconAutoHide,@@ -2233,6 +2235,17 @@ export default function SettingsPage({ activeSection = "general" }: SettingsPage<div><SectionHeader title={t("settingsPage.general.clipboard.title")} /><SettingsPanel>+ <SettingsPanelRow>+ <SettingsRow+ label={t("settingsPage.general.clipboard.autoPaste")}+ description={t("settingsPage.general.clipboard.autoPasteDescription")}+ >+ <Toggle+ checked={autoPasteEnabled}+ onChange={setAutoPasteEnabled}+ />+ </SettingsRow>+ </SettingsPanelRow><SettingsPanelRow><SettingsRowlabel={t("settingsPage.general.clipboard.keepInClipboard")}diff --git a/src/hooks/useAudioRecording.js b/src/hooks/useAudioRecording.jsindex 2967fc31e..6a8557224 100644--- a/src/hooks/useAudioRecording.js+++ b/src/hooks/useAudioRecording.js@@ -130,22 +130,27 @@ export const useAudioRecording = (toast, options = {}) => {window.electronAPI?.completeDictationPreview?.({ text: result.text });const isStreaming = result.source?.includes("streaming");- const { keepTranscriptionInClipboard } = getSettings();- const pasteStart = performance.now();- await audioManagerRef.current.safePaste(result.text, {- ...(isStreaming ? { fromStreaming: true } : {}),- restoreClipboard: !keepTranscriptionInClipboard,- allowClipboardFallback: isAccessibilitySkipped(),- });- logger.info(- "Paste timing",- {- pasteMs: Math.round(performance.now() - pasteStart),- source: result.source,- textLength: result.text.length,- },- "streaming"- );+ const { autoPasteEnabled, keepTranscriptionInClipboard } = getSettings();++ if (autoPasteEnabled) {+ const pasteStart = performance.now();+ await audioManagerRef.current.safePaste(result.text, {+ ...(isStreaming ? { fromStreaming: true } : {}),+ restoreClipboard: !keepTranscriptionInClipboard,+ allowClipboardFallback: isAccessibilitySkipped(),+ });+ logger.info(+ "Paste timing",+ {+ pasteMs: Math.round(performance.now() - pasteStart),+ source: result.source,+ textLength: result.text.length,+ },+ "streaming"+ );+ } else if (keepTranscriptionInClipboard) {+ await navigator.clipboard.writeText(result.text);+ }audioManagerRef.current.saveTranscription(result.text, result.rawText ?? result.text);diff --git a/src/hooks/useSettings.ts b/src/hooks/useSettings.tsindex 808425e37..67c435548 100644--- a/src/hooks/useSettings.ts+++ b/src/hooks/useSettings.ts@@ -265,6 +265,8 @@ function useSettingsInternal() {setAutoLearnCorrections,showTranscriptionPreview: store.showTranscriptionPreview,setShowTranscriptionPreview: store.setShowTranscriptionPreview,+ autoPasteEnabled: store.autoPasteEnabled,+ setAutoPasteEnabled: store.setAutoPasteEnabled,keepTranscriptionInClipboard: store.keepTranscriptionInClipboard,setKeepTranscriptionInClipboard: store.setKeepTranscriptionInClipboard,noteFilesEnabled: store.noteFilesEnabled,diff --git a/src/locales/de/translation.json b/src/locales/de/translation.jsonindex 4cf503a93..d0904d43b 100644--- a/src/locales/de/translation.json+++ b/src/locales/de/translation.json@@ -1232,6 +1232,8 @@},"clipboard": {"title": "Zwischenablage",+ "autoPaste": "Automatisches Einfügen",+ "autoPasteDescription": "Transkribierten Text nach dem Diktieren automatisch in die aktive App einfügen","keepInClipboard": "Transkription in der Zwischenablage behalten","keepInClipboardDescription": "Diktierten Text in der Zwischenablage behalten, damit Sie ihn bei Bedarf manuell einfügen können"},diff --git a/src/locales/en/translation.json b/src/locales/en/translation.jsonindex 5013ff68e..feae20571 100644--- a/src/locales/en/translation.json+++ b/src/locales/en/translation.json@@ -1280,6 +1280,8 @@},"clipboard": {"title": "Clipboard",+ "autoPaste": "Automatic pasting",+ "autoPasteDescription": "Automatically paste transcribed text into the active app when dictation finishes","keepInClipboard": "Keep transcription in clipboard","keepInClipboardDescription": "Keep dictated text in your clipboard so you can paste it manually if needed"},diff --git a/src/locales/es/translation.json b/src/locales/es/translation.jsonindex 1f3e79c7e..3a2dd78fc 100644--- a/src/locales/es/translation.json+++ b/src/locales/es/translation.json@@ -1232,6 +1232,8 @@},"clipboard": {"title": "Portapapeles",+ "autoPaste": "Pegado automático",+ "autoPasteDescription": "Pegar automáticamente el texto transcrito en la aplicación activa al finalizar el dictado","keepInClipboard": "Mantener transcripción en el portapapeles","keepInClipboardDescription": "Mantener el texto dictado en el portapapeles para poder pegarlo manualmente si es necesario"},diff --git a/src/locales/fr/translation.json b/src/locales/fr/translation.jsonindex 50675c405..ebc16c1ac 100644--- a/src/locales/fr/translation.json+++ b/src/locales/fr/translation.json@@ -1232,6 +1232,8 @@},"clipboard": {"title": "Presse-papiers",+ "autoPaste": "Collage automatique",+ "autoPasteDescription": "Coller automatiquement le texte transcrit dans l'application active à la fin de la dictée","keepInClipboard": "Garder la transcription dans le presse-papiers","keepInClipboardDescription": "Conserver le texte dicté dans le presse-papiers pour pouvoir le coller manuellement si nécessaire"},diff --git a/src/locales/it/translation.json b/src/locales/it/translation.jsonindex 40c0020db..791d047ca 100644--- a/src/locales/it/translation.json+++ b/src/locales/it/translation.json@@ -1232,6 +1232,8 @@},"clipboard": {"title": "Appunti",+ "autoPaste": "Incollaggio automatico",+ "autoPasteDescription": "Incolla automaticamente il testo trascritto nell'app attiva al termine della dettatura","keepInClipboard": "Mantieni la trascrizione negli appunti","keepInClipboardDescription": "Mantieni il testo dettato negli appunti per poterlo incollare manualmente se necessario"},diff --git a/src/locales/ja/translation.json b/src/locales/ja/translation.jsonindex 03fa611a2..7b8956beb 100644--- a/src/locales/ja/translation.json+++ b/src/locales/ja/translation.json@@ -1232,6 +1232,8 @@},"clipboard": {"title": "クリップボード",+ "autoPaste": "自動貼り付け",+ "autoPasteDescription": "ディクテーション完了後、文字起こしテキストをアクティブなアプリに自動的に貼り付けます","keepInClipboard": "文字起こしをクリップボードに保持","keepInClipboardDescription": "必要に応じて手動で貼り付けできるよう、音声入力テキストをクリップボードに保持します"},diff --git a/src/locales/pt/translation.json b/src/locales/pt/translation.jsonindex 51baf97c0..0a4a6e911 100644--- a/src/locales/pt/translation.json+++ b/src/locales/pt/translation.json@@ -1204,6 +1204,8 @@},"clipboard": {"title": "Área de transferência",+ "autoPaste": "Colagem automática",+ "autoPasteDescription": "Colar automaticamente o texto transcrito no aplicativo ativo ao finalizar o ditado","keepInClipboard": "Manter transcrição na área de transferência","keepInClipboardDescription": "Manter o texto ditado na área de transferência para poder colar manualmente se necessário"},diff --git a/src/locales/ru/translation.json b/src/locales/ru/translation.jsonindex 54cf43dd4..1fcd8d6dd 100644--- a/src/locales/ru/translation.json+++ b/src/locales/ru/translation.json@@ -1232,6 +1232,8 @@},"clipboard": {"title": "Буфер обмена",+ "autoPaste": "Автоматическая вставка",+ "autoPasteDescription": "Автоматически вставлять транскрибированный текст в активное приложение после завершения диктовки","keepInClipboard": "Сохранять транскрипцию в буфере обмена","keepInClipboardDescription": "Сохранять надиктованный текст в буфере обмена для возможности ручной вставки при необходимости"},diff --git a/src/locales/zh-CN/translation.json b/src/locales/zh-CN/translation.jsonindex dec64125c..7040b8465 100644--- a/src/locales/zh-CN/translation.json+++ b/src/locales/zh-CN/translation.json@@ -1227,6 +1227,8 @@},"clipboard": {"title": "剪贴板",+ "autoPaste": "自动粘贴",+ "autoPasteDescription": "听写结束后自动将转录文本粘贴到当前活动的应用中","keepInClipboard": "将转录内容保留在剪贴板","keepInClipboardDescription": "将听写文本保留在剪贴板中,以便在需要时手动粘贴"},diff --git a/src/locales/zh-TW/translation.json b/src/locales/zh-TW/translation.jsonindex c7d12bd78..32f96fb22 100644--- a/src/locales/zh-TW/translation.json+++ b/src/locales/zh-TW/translation.json@@ -1227,6 +1227,8 @@},"clipboard": {"title": "剪貼簿",+ "autoPaste": "自動貼上",+ "autoPasteDescription": "聽寫結束後自動將轉錄文字貼上到目前使用中的應用程式","keepInClipboard": "將轉錄內容保留在剪貼簿","keepInClipboardDescription": "將語音輸入的文字保留在剪貼簿中,以便在需要時手動貼上"},diff --git a/src/stores/settingsStore.ts b/src/stores/settingsStore.tsindex c1835a4cf..3396a02fd 100644--- a/src/stores/settingsStore.ts+++ b/src/stores/settingsStore.ts@@ -63,6 +63,7 @@ const BOOLEAN_SETTINGS = new Set(["meetingAudioDetection","isSignedIn","agentEnabled",+ "autoPasteEnabled","keepTranscriptionInClipboard","dataRetentionEnabled","noteFilesEnabled",@@ -181,6 +182,7 @@ export interface SettingsStatemeetingAudioDetection: boolean;panelStartPosition: "bottom-right" | "center" | "bottom-left";showTranscriptionPreview: boolean;+ autoPasteEnabled: boolean;keepTranscriptionInClipboard: boolean;noteFilesEnabled: boolean;noteFilesPath: string;@@ -249,6 +251,7 @@ export interface SettingsStatesetMeetingAudioDetection: (value: boolean) => void;setPanelStartPosition: (position: "bottom-right" | "center" | "bottom-left") => void;setShowTranscriptionPreview: (value: boolean) => void;+ setAutoPasteEnabled: (value: boolean) => void;setKeepTranscriptionInClipboard: (value: boolean) => void;setNoteFilesEnabled: (value: boolean) => void;setNoteFilesPath: (value: string) => void;@@ -414,6 +417,7 @@ export const useSettingsStore = create<SettingsState>()((set, get) => ({return "bottom-right" as const;})(),showTranscriptionPreview: readBoolean("showTranscriptionPreview", false),+ autoPasteEnabled: readBoolean("autoPasteEnabled", true),keepTranscriptionInClipboard: readBoolean("keepTranscriptionInClipboard", false),noteFilesEnabled: readBoolean("noteFilesEnabled", false),noteFilesPath: readString("noteFilesPath", ""),@@ -672,6 +676,7 @@ export const useSettingsStore = create<SettingsState>()((set, get) => ({},setShowTranscriptionPreview: createBooleanSetter("showTranscriptionPreview"),+ setAutoPasteEnabled: createBooleanSetter("autoPasteEnabled"),setKeepTranscriptionInClipboard: createBooleanSetter("keepTranscriptionInClipboard"),setNoteFilesEnabled: createBooleanSetter("noteFilesEnabled"),setNoteFilesPath: createStringSetter("noteFilesPath"),