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 auto-paste toggle in clipboard settings
Gabriel Stein3ea55e954031
diff --git a/src/components/SettingsPage.tsx b/src/components/SettingsPage.tsxindex fb1fcf741..61eba5324 100644--- a/src/components/SettingsPage.tsx+++ b/src/components/SettingsPage.tsx@@ -681,6 +681,8 @@ export default function SettingsPage({ activeSection = "general" }: SettingsPagesetAudioCuesEnabled,pauseMediaOnDictation,setPauseMediaOnDictation,+ autoPasteEnabled,+ setAutoPasteEnabled,floatingIconAutoHide,setFloatingIconAutoHide,panelStartPosition,@@ -1733,6 +1735,21 @@ export default function SettingsPage({ activeSection = "general" }: SettingsPage</SettingsPanel></div>+ {/* Clipboard */}+ <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>+ </SettingsPanel>+ </div>+{/* Floating Icon */}<div><SectionHeaderdiff --git a/src/hooks/useAudioRecording.js b/src/hooks/useAudioRecording.jsindex e6d43288e..626a5a207 100644--- a/src/hooks/useAudioRecording.js+++ b/src/hooks/useAudioRecording.js@@ -112,20 +112,23 @@ export const useAudioRecording = (toast, options = {}) => {setTranscript(result.text);const isStreaming = result.source?.includes("streaming");- const pasteStart = performance.now();- await audioManagerRef.current.safePaste(- result.text,- isStreaming ? { fromStreaming: true } : {}- );- logger.info(- "Paste timing",- {- pasteMs: Math.round(performance.now() - pasteStart),- source: result.source,- textLength: result.text.length,- },- "streaming"- );+ const { autoPasteEnabled } = getSettings();+ if (autoPasteEnabled) {+ const pasteStart = performance.now();+ await audioManagerRef.current.safePaste(+ result.text,+ isStreaming ? { fromStreaming: true } : {}+ );+ logger.info(+ "Paste timing",+ {+ pasteMs: Math.round(performance.now() - pasteStart),+ source: result.source,+ textLength: result.text.length,+ },+ "streaming"+ );+ }audioManagerRef.current.saveTranscription(result.text, result.rawText ?? result.text);diff --git a/src/hooks/useSettings.ts b/src/hooks/useSettings.tsindex e2362b7fb..4872dd277 100644--- a/src/hooks/useSettings.ts+++ b/src/hooks/useSettings.ts@@ -235,6 +235,8 @@ function useSettingsInternal() {setSelectedMicDeviceId: store.setSelectedMicDeviceId,autoLearnCorrections,setAutoLearnCorrections,+ autoPasteEnabled: store.autoPasteEnabled,+ setAutoPasteEnabled: store.setAutoPasteEnabled,cloudBackupEnabled: store.cloudBackupEnabled,setCloudBackupEnabled: store.setCloudBackupEnabled,telemetryEnabled: store.telemetryEnabled,diff --git a/src/locales/de/translation.json b/src/locales/de/translation.jsonindex b14d91516..3a1058132 100644--- a/src/locales/de/translation.json+++ b/src/locales/de/translation.json@@ -1082,6 +1082,11 @@"pauseMediaDescription": "Musik beim Starten der Diktat automatisch pausieren","title": "Soundeffekte"},+ "clipboard": {+ "title": "Zwischenablage",+ "autoPaste": "Nach dem Diktat automatisch einfügen",+ "autoPasteDescription": "Transkribierten Text automatisch in die aktive App einfügen"+ },"startup": {"launchAtLogin": "Beim Anmelden starten","launchAtLoginDescription": "OpenWhispr automatisch starten, wenn Sie sich anmelden",diff --git a/src/locales/en/translation.json b/src/locales/en/translation.jsonindex 9a79d84fe..98dd80d25 100644--- a/src/locales/en/translation.json+++ b/src/locales/en/translation.json@@ -1145,6 +1145,11 @@"pauseMediaDescription": "Automatically pause music when dictation starts","title": "Sound Effects"},+ "clipboard": {+ "title": "Clipboard",+ "autoPaste": "Auto-paste after dictation",+ "autoPasteDescription": "Automatically paste transcribed text into the active app"+ },"startup": {"launchAtLogin": "Launch at login","launchAtLoginDescription": "Start OpenWhispr automatically when you log in",diff --git a/src/locales/es/translation.json b/src/locales/es/translation.jsonindex 5cbdf57d0..c8ca81704 100644--- a/src/locales/es/translation.json+++ b/src/locales/es/translation.json@@ -1086,6 +1086,11 @@"pauseMediaDescription": "Pausar la música automáticamente al iniciar el dictado","title": "Efectos de sonido"},+ "clipboard": {+ "title": "Portapapeles",+ "autoPaste": "Pegar automáticamente después del dictado",+ "autoPasteDescription": "Pegar automáticamente el texto transcrito en la aplicación activa"+ },"startup": {"launchAtLogin": "Abrir al iniciar sesión","launchAtLoginDescription": "Inicia OpenWhispr automáticamente al iniciar sesión",diff --git a/src/locales/fr/translation.json b/src/locales/fr/translation.jsonindex 7d24f0f7d..7a6b4ab33 100644--- a/src/locales/fr/translation.json+++ b/src/locales/fr/translation.json@@ -1086,6 +1086,11 @@"pauseMediaDescription": "Mettre automatiquement la musique en pause au début de la dictée","title": "Effets sonores"},+ "clipboard": {+ "title": "Presse-papiers",+ "autoPaste": "Coller automatiquement après la dictée",+ "autoPasteDescription": "Coller automatiquement le texte transcrit dans l'application active"+ },"startup": {"launchAtLogin": "Lancer au démarrage","launchAtLoginDescription": "Démarrer OpenWhispr automatiquement à la connexion",diff --git a/src/locales/it/translation.json b/src/locales/it/translation.jsonindex 8505374d5..5986d8fe3 100644--- a/src/locales/it/translation.json+++ b/src/locales/it/translation.json@@ -1086,6 +1086,11 @@"pauseMediaDescription": "Metti automaticamente in pausa la musica quando inizia la dettatura","title": "Effetti sonori"},+ "clipboard": {+ "title": "Appunti",+ "autoPaste": "Incolla automaticamente dopo la dettatura",+ "autoPasteDescription": "Incolla automaticamente il testo trascritto nell'app attiva"+ },"startup": {"launchAtLogin": "Avvia all'accesso","launchAtLoginDescription": "Avvia OpenWhispr automaticamente all'accesso",diff --git a/src/locales/ja/translation.json b/src/locales/ja/translation.jsonindex 3d5cfc84e..11000a74a 100644--- a/src/locales/ja/translation.json+++ b/src/locales/ja/translation.json@@ -1082,6 +1082,11 @@"pauseMediaDescription": "ディクテーション開始時に音楽を自動的に一時停止","title": "サウンドエフェクト"},+ "clipboard": {+ "title": "クリップボード",+ "autoPaste": "ディクテーション後に自動貼り付け",+ "autoPasteDescription": "文字起こしテキストをアクティブなアプリに自動的に貼り付け"+ },"startup": {"launchAtLogin": "ログイン時に起動","launchAtLoginDescription": "ログイン時に OpenWhispr を自動的に起動",diff --git a/src/locales/pt/translation.json b/src/locales/pt/translation.jsonindex 18a09ea88..7a849356b 100644--- a/src/locales/pt/translation.json+++ b/src/locales/pt/translation.json@@ -1058,6 +1058,11 @@"pauseMediaDescription": "Pausar a música automaticamente ao iniciar o ditado","title": "Efeitos sonoros"},+ "clipboard": {+ "title": "Área de transferência",+ "autoPaste": "Colar automaticamente após o ditado",+ "autoPasteDescription": "Colar automaticamente o texto transcrito no aplicativo ativo"+ },"startup": {"launchAtLogin": "Iniciar ao fazer login","launchAtLoginDescription": "Iniciar o OpenWhispr automaticamente ao fazer login",diff --git a/src/locales/ru/translation.json b/src/locales/ru/translation.jsonindex 3c3de17a6..c70eea224 100644--- a/src/locales/ru/translation.json+++ b/src/locales/ru/translation.json@@ -1086,6 +1086,11 @@"pauseMediaDescription": "Автоматически приостанавливать музыку при начале диктовки","title": "Звуковые эффекты"},+ "clipboard": {+ "title": "Буфер обмена",+ "autoPaste": "Автовставка после диктовки",+ "autoPasteDescription": "Автоматически вставлять транскрибированный текст в активное приложение"+ },"startup": {"launchAtLogin": "Запускать при входе","launchAtLoginDescription": "Автоматически запускать OpenWhispr при входе в систему",diff --git a/src/locales/zh-CN/translation.json b/src/locales/zh-CN/translation.jsonindex 109d5cf51..05e0eb8bd 100644--- a/src/locales/zh-CN/translation.json+++ b/src/locales/zh-CN/translation.json@@ -1082,6 +1082,11 @@"pauseMediaDescription": "开始听写时自动暂停音乐","title": "音效"},+ "clipboard": {+ "title": "剪贴板",+ "autoPaste": "听写后自动粘贴",+ "autoPasteDescription": "自动将转录文本粘贴到活动应用中"+ },"startup": {"launchAtLogin": "登录时启动","launchAtLoginDescription": "登录时自动启动 OpenWhispr",diff --git a/src/locales/zh-TW/translation.json b/src/locales/zh-TW/translation.jsonindex aff8e0545..9b1bcb301 100644--- a/src/locales/zh-TW/translation.json+++ b/src/locales/zh-TW/translation.json@@ -1082,6 +1082,11 @@"pauseMediaDescription": "開始聽寫時自動暫停音樂","title": "音效"},+ "clipboard": {+ "title": "剪貼簿",+ "autoPaste": "語音輸入後自動貼上",+ "autoPasteDescription": "自動將轉錄文字貼上到使用中的應用程式"+ },"startup": {"launchAtLogin": "登入時啟動","launchAtLoginDescription": "登入時自動啟動 OpenWhispr",diff --git a/src/stores/settingsStore.ts b/src/stores/settingsStore.tsindex 972b8da96..81cf71461 100644--- a/src/stores/settingsStore.ts+++ b/src/stores/settingsStore.ts@@ -62,6 +62,7 @@ const BOOLEAN_SETTINGS = new Set(["meetingAudioDetection","isSignedIn","agentEnabled",+ "autoPasteEnabled",]);const ARRAY_SETTINGS = new Set(["customDictionary", "gcalAccounts"]);@@ -100,6 +101,7 @@ export interface SettingsStatemeetingProcessDetection: boolean;meetingAudioDetection: boolean;panelStartPosition: "bottom-right" | "center" | "bottom-left";+ autoPasteEnabled: boolean;setUseLocalWhisper: (value: boolean) => void;setWhisperModel: (value: string) => void;@@ -147,6 +149,7 @@ export interface SettingsStatesetMeetingProcessDetection: (value: boolean) => void;setMeetingAudioDetection: (value: boolean) => void;setPanelStartPosition: (position: "bottom-right" | "center" | "bottom-left") => void;+ setAutoPasteEnabled: (value: boolean) => void;setIsSignedIn: (value: boolean) => void;setAgentModel: (value: string) => void;@@ -295,6 +298,7 @@ export const useSettingsStore = create<SettingsState>()((set, get) => ({if (v === "bottom-right" || v === "center" || v === "bottom-left") return v;return "bottom-right" as const;})(),+ autoPasteEnabled: readBoolean("autoPasteEnabled", true),isSignedIn: readBoolean("isSignedIn", false),agentModel: readString("agentModel", "openai/gpt-oss-120b"),@@ -459,6 +463,8 @@ export const useSettingsStore = create<SettingsState>()((set, get) => ({}},+ setAutoPasteEnabled: createBooleanSetter("autoPasteEnabled"),+setIsSignedIn: (value: boolean) => {if (isBrowser) localStorage.setItem("isSignedIn", String(value));set({ isSignedIn: value });