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
Add text retention toggle to Privacy & Data settings
xAlcahest0152f1dd3e1d
diff --git a/src/components/HistoryView.tsx b/src/components/HistoryView.tsxindex 7bc7f5df8..15f954a09 100644--- a/src/components/HistoryView.tsx+++ b/src/components/HistoryView.tsx@@ -9,6 +9,7 @@ import { formatDateGroup } from "../utils/dateFormatting";import { cn } from "./lib/utils";import { useUpcomingEvents } from "../hooks/useUpcomingEvents";import UpcomingMeetings from "./UpcomingMeetings";+import { useSettingsStore } from "../stores/settingsStore";interface HistoryViewProps {history: TranscriptionItemType[];@@ -44,6 +45,7 @@ export default function HistoryView({onRetryTranscription,}: HistoryViewProps) {const { t } = useTranslation();+ const textRetentionEnabled = useSettingsStore((s) => s.textRetentionEnabled);const { events, isLoading: eventsLoading, isConnected } = useUpcomingEvents();const groupedHistory = useMemo(() => {@@ -155,6 +157,14 @@ export default function HistoryView({</span></div>)}+ {!textRetentionEnabled && (+ <div className="mb-3 rounded-lg border border-amber-500/30 bg-amber-500/5 dark:bg-amber-500/10 px-3.5 py-2.5 flex items-center gap-2.5">+ <span className="text-amber-600 dark:text-amber-400 shrink-0 text-sm">⊘</span>+ <p className="text-xs text-amber-700 dark:text-amber-300/90 leading-relaxed">+ {t("controlPanel.history.textRetentionDisabled")}+ </p>+ </div>+ )}{isLoading ? (<div className="rounded-lg border border-border bg-card/50 dark:bg-card/60 backdrop-blur-sm"><div className="flex items-center justify-center gap-2 py-8">diff --git a/src/components/SettingsPage.tsx b/src/components/SettingsPage.tsxindex fbb400489..c1f7d790a 100644--- a/src/components/SettingsPage.tsx+++ b/src/components/SettingsPage.tsx@@ -711,6 +711,8 @@ export default function SettingsPage({ activeSection = "general" }: SettingsPagesetTelemetryEnabled,audioRetentionDays,setAudioRetentionDays,+ textRetentionEnabled,+ setTextRetentionEnabled,customDictionary,setCustomDictionary,} = useSettings();@@ -3247,6 +3249,28 @@ EOF`,</SettingsPanel></div>+ {/* Text Retention */}+ <div className="border-t border-border/40 pt-6">+ <SectionHeader+ title={t("settingsPage.privacy.textRetention")}+ description={t("settingsPage.privacy.textRetentionDescription")}+ />++ <SettingsPanel>+ <SettingsPanelRow>+ <SettingsRow+ label={t("settingsPage.privacy.textRetention")}+ description={t("settingsPage.privacy.textRetentionDescription")}+ >+ <Toggle+ checked={textRetentionEnabled}+ onChange={setTextRetentionEnabled}+ />+ </SettingsRow>+ </SettingsPanelRow>+ </SettingsPanel>+ </div>+{/* Permissions */}<div className="border-t border-border/40 pt-6"><SectionHeaderdiff --git a/src/helpers/audioManager.js b/src/helpers/audioManager.jsindex 22a6afa91..5b42c07d0 100644--- a/src/helpers/audioManager.js+++ b/src/helpers/audioManager.js@@ -1926,6 +1926,13 @@ registerProcessor("pcm-streaming-processor", PCMStreamingProcessor);}async saveTranscription(text, rawText = null) {+ if (!getSettings().textRetentionEnabled) {+ logger.debug("Skipping transcription save — text retention disabled", {}, "audio");+ this.lastAudioBlob = null;+ this.lastAudioMetadata = null;+ return true;+ }+try {const result = await window.electronAPI.saveTranscription(text, rawText);@@ -1953,6 +1960,13 @@ registerProcessor("pcm-streaming-processor", PCMStreamingProcessor);}async saveFailedTranscription(errorMessage, metadata = {}) {+ if (!getSettings().textRetentionEnabled) {+ logger.debug("Skipping failed transcription save — text retention disabled", {}, "audio");+ this.lastAudioBlob = null;+ this.lastAudioMetadata = null;+ return;+ }+try {const result = await window.electronAPI.saveTranscription("", null, {status: "failed",diff --git a/src/hooks/useSettings.ts b/src/hooks/useSettings.tsindex 9d441a551..19ccbcbdb 100644--- a/src/hooks/useSettings.ts+++ b/src/hooks/useSettings.ts@@ -55,6 +55,7 @@ export interface PrivacySettings {cloudBackupEnabled: boolean;telemetryEnabled: boolean;audioRetentionDays: number;+ textRetentionEnabled: boolean;}export interface ThemeSettings {@@ -248,6 +249,8 @@ function useSettingsInternal() {setTelemetryEnabled: store.setTelemetryEnabled,audioRetentionDays: store.audioRetentionDays,setAudioRetentionDays: store.setAudioRetentionDays,+ textRetentionEnabled: store.textRetentionEnabled,+ setTextRetentionEnabled: store.setTextRetentionEnabled,updateTranscriptionSettings: store.updateTranscriptionSettings,updateReasoningSettings: store.updateReasoningSettings,updateApiKeys: store.updateApiKeys,diff --git a/src/locales/de/translation.json b/src/locales/de/translation.jsonindex 21e1c0b0e..f2740f626 100644--- a/src/locales/de/translation.json+++ b/src/locales/de/translation.json@@ -227,6 +227,7 @@"couldNotDeleteDescription": "Diese Transkription wurde möglicherweise bereits entfernt.","couldNotDeleteDescriptionGeneric": "Etwas ist schiefgelaufen. Bitte versuchen Sie es erneut.","empty": "Noch keine Transkriptionen",+ "textRetentionDisabled": "Textaufbewahrung ist deaktiviert. Transkriptionen und Audio werden nicht im Verlauf gespeichert.","press": "Drücken Sie","toStart": "zum Starten","dateGroups": {@@ -1322,7 +1323,9 @@"description": "Steuern Sie, welche Daten Ihr Gerät verlassen. Standardmäßig ist alles deaktiviert.","title": "Datenschutz","usageAnalytics": "Nutzungsanalysen",- "usageAnalyticsDescription": "Helfen Sie uns, OpenWhispr zu verbessern, indem Sie anonyme Leistungsdaten teilen. Wir senden niemals Transkriptionsinhalte – nur Timing- und Fehlerdaten."+ "usageAnalyticsDescription": "Helfen Sie uns, OpenWhispr zu verbessern, indem Sie anonyme Leistungsdaten teilen. Wir senden niemals Transkriptionsinhalte – nur Timing- und Fehlerdaten.",+ "textRetention": "Textaufbewahrung",+ "textRetentionDescription": "Transkriptionstext lokal im Verlauf speichern. Wenn deaktiviert, werden Transkriptionen eingefügt, aber nicht gespeichert."},"prompts": {"description": "Den einheitlichen System-Prompt anzeigen, anpassen und testen, der Textbereinigung und Anweisungserkennung steuert",diff --git a/src/locales/en/translation.json b/src/locales/en/translation.jsonindex 045812132..bd49d244f 100644--- a/src/locales/en/translation.json+++ b/src/locales/en/translation.json@@ -227,6 +227,7 @@"couldNotDeleteDescription": "This transcription may have already been removed.","couldNotDeleteDescriptionGeneric": "Something went wrong. Please try again.","empty": "No transcriptions yet",+ "textRetentionDisabled": "Text retention is off. Transcriptions and audio are not saved to history.","press": "Press","toStart": "to start","dateGroups": {@@ -1392,7 +1393,9 @@"audioStorageFiles": "{{count}} files, {{size}}","audioStorageEmpty": "No audio files stored","clearAllAudio": "Clear All Audio",- "clearAllAudioConfirm": "Delete all stored audio files? This cannot be undone."+ "clearAllAudioConfirm": "Delete all stored audio files? This cannot be undone.",+ "textRetention": "Text Retention",+ "textRetentionDescription": "Store transcription text locally in your history. When disabled, transcriptions are pasted but not saved."},"prompts": {"description": "View, customize, and test the unified system prompt that powers text cleanup and instruction detection",diff --git a/src/locales/es/translation.json b/src/locales/es/translation.jsonindex d4e12292a..2a9824baf 100644--- a/src/locales/es/translation.json+++ b/src/locales/es/translation.json@@ -227,6 +227,7 @@"couldNotDeleteDescription": "Puede que esta transcripción ya se haya eliminado.","couldNotDeleteDescriptionGeneric": "Algo salió mal. Inténtalo de nuevo.","empty": "Aún no hay transcripciones",+ "textRetentionDisabled": "La retención de texto está desactivada. Las transcripciones y el audio no se guardan en el historial.","press": "Pulsa","toStart": "para empezar","dateGroups": {@@ -1322,7 +1323,9 @@"description": "Controla qué datos salen de tu dispositivo. Todo está desactivado por defecto.","title": "Privacidad","usageAnalytics": "Analíticas de uso",- "usageAnalyticsDescription": "Ayúdanos a mejorar OpenWhispr compartiendo métricas de rendimiento anónimas. Nunca enviamos contenido de transcripciones, solo datos de tiempo y errores."+ "usageAnalyticsDescription": "Ayúdanos a mejorar OpenWhispr compartiendo métricas de rendimiento anónimas. Nunca enviamos contenido de transcripciones, solo datos de tiempo y errores.",+ "textRetention": "Retención de texto",+ "textRetentionDescription": "Almacenar texto de transcripciones localmente en tu historial. Cuando está desactivado, las transcripciones se pegan pero no se guardan."},"prompts": {"description": "Visualiza, personaliza y prueba el prompt de sistema unificado que impulsa la corrección de texto y la detección de instrucciones",diff --git a/src/locales/fr/translation.json b/src/locales/fr/translation.jsonindex b12b069ff..5bd28cfce 100644--- a/src/locales/fr/translation.json+++ b/src/locales/fr/translation.json@@ -227,6 +227,7 @@"couldNotDeleteDescription": "Cette transcription a peut-être déjà été supprimée.","couldNotDeleteDescriptionGeneric": "Une erreur est survenue. Veuillez réessayer.","empty": "Aucune transcription pour le moment",+ "textRetentionDisabled": "La conservation du texte est désactivée. Les transcriptions et l'audio ne sont pas sauvegardés dans l'historique.","press": "Appuyez sur","toStart": "pour démarrer","dateGroups": {@@ -1322,7 +1323,9 @@"description": "Contrôlez quelles données quittent votre appareil. Tout est désactivé par défaut.","title": "Confidentialité","usageAnalytics": "Analyse d'utilisation",- "usageAnalyticsDescription": "Aidez-nous à améliorer OpenWhispr en partageant des métriques de performance anonymes. Nous n'envoyons jamais le contenu de vos transcriptions — uniquement des données de performance et d'erreurs."+ "usageAnalyticsDescription": "Aidez-nous à améliorer OpenWhispr en partageant des métriques de performance anonymes. Nous n'envoyons jamais le contenu de vos transcriptions — uniquement des données de performance et d'erreurs.",+ "textRetention": "Conservation du texte",+ "textRetentionDescription": "Stocker le texte des transcriptions localement dans votre historique. Lorsque désactivé, les transcriptions sont collées mais pas enregistrées."},"prompts": {"description": "Affichez, personnalisez et testez le prompt système unifié qui gère la correction du texte et la détection des instructions",diff --git a/src/locales/it/translation.json b/src/locales/it/translation.jsonindex 23e85d43e..a036d4f48 100644--- a/src/locales/it/translation.json+++ b/src/locales/it/translation.json@@ -227,6 +227,7 @@"couldNotDeleteDescription": "Questa trascrizione potrebbe essere già stata rimossa.","couldNotDeleteDescriptionGeneric": "Qualcosa è andato storto. Riprova.","empty": "Nessuna trascrizione",+ "textRetentionDisabled": "La conservazione del testo è disattivata. Trascrizioni e audio non vengono salvati nella cronologia.","press": "Premi","toStart": "per iniziare","dateGroups": {@@ -1322,7 +1323,9 @@"description": "Controlla quali dati escono dal tuo dispositivo. Tutto è disattivato per impostazione predefinita.","title": "Privacy","usageAnalytics": "Analisi dell'utilizzo",- "usageAnalyticsDescription": "Aiutaci a migliorare OpenWhispr condividendo metriche di prestazione anonime. Non inviamo mai il contenuto delle trascrizioni, solo dati su tempi ed errori."+ "usageAnalyticsDescription": "Aiutaci a migliorare OpenWhispr condividendo metriche di prestazione anonime. Non inviamo mai il contenuto delle trascrizioni, solo dati su tempi ed errori.",+ "textRetention": "Conservazione del testo",+ "textRetentionDescription": "Salva il testo delle trascrizioni localmente nella cronologia. Se disattivato, le trascrizioni vengono incollate ma non salvate."},"prompts": {"description": "Visualizza, personalizza e testa il prompt di sistema unificato che gestisce la correzione del testo e il rilevamento delle istruzioni",diff --git a/src/locales/ja/translation.json b/src/locales/ja/translation.jsonindex b3c93479f..9678bcfe6 100644--- a/src/locales/ja/translation.json+++ b/src/locales/ja/translation.json@@ -227,6 +227,7 @@"couldNotDeleteDescription": "この文字起こしは既に削除されている可能性があります。","couldNotDeleteDescriptionGeneric": "問題が発生しました。もう一度お試しください。","empty": "文字起こし履歴はまだありません",+ "textRetentionDisabled": "テキスト保持が無効です。文字起こしと音声は履歴に保存されません。","press": "押してください","toStart": "開始するには","dateGroups": {@@ -1322,7 +1323,9 @@"description": "デバイスからのデータ送信を管理します。初期設定ではすべてオフです。","title": "プライバシー","usageAnalytics": "使用状況の分析",- "usageAnalyticsDescription": "匿名のパフォーマンスデータを共有して OpenWhispr の改善にご協力ください。文字起こしの内容は送信されません。タイミングとエラーデータのみです。"+ "usageAnalyticsDescription": "匿名のパフォーマンスデータを共有して OpenWhispr の改善にご協力ください。文字起こしの内容は送信されません。タイミングとエラーデータのみです。",+ "textRetention": "テキスト保持",+ "textRetentionDescription": "文字起こしテキストを履歴にローカル保存します。無効にすると、文字起こしは貼り付けられますが保存されません。"},"prompts": {"description": "テキスト補正と指示検出を行う統合システムプロンプトの表示、カスタマイズ、テスト",diff --git a/src/locales/pt/translation.json b/src/locales/pt/translation.jsonindex b720afd74..c85130494 100644--- a/src/locales/pt/translation.json+++ b/src/locales/pt/translation.json@@ -199,6 +199,7 @@"couldNotDeleteDescription": "Esta transcrição pode já ter sido removida.","couldNotDeleteDescriptionGeneric": "Algo deu errado. Tente novamente.","empty": "Ainda sem transcrições",+ "textRetentionDisabled": "A retenção de texto está desativada. Transcrições e áudio não são salvos no histórico.","press": "Pressione","toStart": "para iniciar","dateGroups": {@@ -1294,7 +1295,9 @@"description": "Controle quais dados saem do seu dispositivo. Tudo está desativado por padrão.","title": "Privacidade","usageAnalytics": "Análise de uso",- "usageAnalyticsDescription": "Ajude-nos a melhorar o OpenWhispr compartilhando métricas anônimas de desempenho. Nunca enviamos conteúdo de transcrição — apenas dados de tempo e erros."+ "usageAnalyticsDescription": "Ajude-nos a melhorar o OpenWhispr compartilhando métricas anônimas de desempenho. Nunca enviamos conteúdo de transcrição — apenas dados de tempo e erros.",+ "textRetention": "Retenção de texto",+ "textRetentionDescription": "Armazenar texto de transcrições localmente no seu histórico. Quando desativado, as transcrições são coladas mas não salvas."},"prompts": {"description": "Visualize, personalize e teste o prompt de sistema unificado que alimenta a limpeza de texto e a detecção de instruções",diff --git a/src/locales/ru/translation.json b/src/locales/ru/translation.jsonindex 235810aa0..0e70e53e1 100644--- a/src/locales/ru/translation.json+++ b/src/locales/ru/translation.json@@ -227,6 +227,7 @@"couldNotDeleteDescription": "Эта транскрипция, возможно, уже была удалена.","couldNotDeleteDescriptionGeneric": "Что-то пошло не так. Попробуйте снова.","empty": "Транскрипций пока нет",+ "textRetentionDisabled": "Хранение текста отключено. Транскрипции и аудио не сохраняются в истории.","press": "Нажмите","toStart": "чтобы начать","dateGroups": {@@ -1322,7 +1323,9 @@"description": "Контролируйте, какие данные покидают ваше устройство. По умолчанию всё отключено.","title": "Конфиденциальность","usageAnalytics": "Аналитика использования",- "usageAnalyticsDescription": "Помогите нам улучшить OpenWhispr, делясь анонимными метриками производительности. Мы никогда не отправляем содержимое транскрипций — только данные о времени и ошибках."+ "usageAnalyticsDescription": "Помогите нам улучшить OpenWhispr, делясь анонимными метриками производительности. Мы никогда не отправляем содержимое транскрипций — только данные о времени и ошибках.",+ "textRetention": "Хранение текста",+ "textRetentionDescription": "Сохранять текст транскрипций локально в истории. При отключении транскрипции вставляются, но не сохраняются."},"prompts": {"description": "Просматривайте, настраивайте и тестируйте единый системный промпт, который управляет очисткой текста и обнаружением инструкций",diff --git a/src/locales/zh-CN/translation.json b/src/locales/zh-CN/translation.jsonindex 3495ff9d5..4b4cba300 100644--- a/src/locales/zh-CN/translation.json+++ b/src/locales/zh-CN/translation.json@@ -227,6 +227,7 @@"couldNotDeleteDescription": "此转录记录可能已被删除。","couldNotDeleteDescriptionGeneric": "出了点问题,请重试。","empty": "暂无转录记录",+ "textRetentionDisabled": "文本保留已关闭。转录和音频不会保存到历史记录。","press": "按下","toStart": "开始","dateGroups": {@@ -1322,7 +1323,9 @@"description": "控制哪些数据会离开你的设备。默认全部关闭。","title": "隐私","usageAnalytics": "使用分析",- "usageAnalyticsDescription": "通过分享匿名性能数据帮助我们改进 OpenWhispr。我们绝不发送转录内容——仅发送计时和错误数据。"+ "usageAnalyticsDescription": "通过分享匿名性能数据帮助我们改进 OpenWhispr。我们绝不发送转录内容——仅发送计时和错误数据。",+ "textRetention": "文本保留",+ "textRetentionDescription": "将转录文本本地保存到历史记录中。禁用后,转录内容会被粘贴但不会被保存。"},"prompts": {"description": "查看、自定义和测试用于文本整理和指令识别的统一系统提示词",diff --git a/src/locales/zh-TW/translation.json b/src/locales/zh-TW/translation.jsonindex f08e09c7d..158731b94 100644--- a/src/locales/zh-TW/translation.json+++ b/src/locales/zh-TW/translation.json@@ -227,6 +227,7 @@"couldNotDeleteDescription": "這筆轉錄記錄可能已被移除。","couldNotDeleteDescriptionGeneric": "發生錯誤,請再試一次。","empty": "目前沒有轉錄記錄",+ "textRetentionDisabled": "文字保留已關閉。轉錄和音訊不會儲存至歷史記錄。","press": "按下","toStart": "開始","dateGroups": {@@ -1322,7 +1323,9 @@"description": "控制哪些資料會離開你的裝置。預設全部關閉。","title": "隱私權","usageAnalytics": "使用分析",- "usageAnalyticsDescription": "分享匿名的效能指標,協助我們改善 OpenWhispr。我們絕不會傳送轉錄內容——只有計時和錯誤資料。"+ "usageAnalyticsDescription": "分享匿名的效能指標,協助我們改善 OpenWhispr。我們絕不會傳送轉錄內容——只有計時和錯誤資料。",+ "textRetention": "文字保留",+ "textRetentionDescription": "將轉錄文字本地儲存至歷史記錄。停用後,轉錄內容會被貼上但不會被儲存。"},"prompts": {"description": "檢視、自訂和測試用於文字整理和指令偵測的統一系統提示詞",diff --git a/src/stores/settingsStore.ts b/src/stores/settingsStore.tsindex fd681edec..824c8f9f4 100644--- a/src/stores/settingsStore.ts+++ b/src/stores/settingsStore.ts@@ -64,6 +64,7 @@ const BOOLEAN_SETTINGS = new Set(["isSignedIn","agentEnabled","keepTranscriptionInClipboard",+ "textRetentionEnabled",]);const ARRAY_SETTINGS = new Set(["customDictionary", "gcalAccounts"]);@@ -145,6 +146,7 @@ export interface SettingsStatesetCloudBackupEnabled: (value: boolean) => void;setTelemetryEnabled: (value: boolean) => void;setAudioRetentionDays: (days: number) => void;+ setTextRetentionEnabled: (value: boolean) => void;setAudioCuesEnabled: (value: boolean) => void;setPauseMediaOnDictation: (value: boolean) => void;setFloatingIconAutoHide: (enabled: boolean) => void;@@ -279,6 +281,7 @@ export const useSettingsStore = create<SettingsState>()((set, get) => ({const parsed = parseInt(stored, 10);return isNaN(parsed) ? 30 : parsed;})(),+ textRetentionEnabled: readBoolean("textRetentionEnabled", true),audioCuesEnabled: readBoolean("audioCuesEnabled", true),pauseMediaOnDictation: readBoolean("pauseMediaOnDictation", false),floatingIconAutoHide: readBoolean("floatingIconAutoHide", false),@@ -444,6 +447,17 @@ export const useSettingsStore = create<SettingsState>()((set, get) => ({if (isBrowser) localStorage.setItem("audioRetentionDays", String(days));set({ audioRetentionDays: days });},+ setTextRetentionEnabled: (value: boolean) => {+ if (isBrowser) localStorage.setItem("textRetentionEnabled", String(value));+ set({ textRetentionEnabled: value });+ logger.info(+ value+ ? "Text retention enabled — transcriptions and audio will be saved"+ : "Text retention disabled — transcriptions and audio will not be saved",+ {},+ "settings"+ );+ },setAudioCuesEnabled: createBooleanSetter("audioCuesEnabled"),setPauseMediaOnDictation: createBooleanSetter("pauseMediaOnDictation"),