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
Rename text retention to data retention and fix duplicate UI
Gabriel Steine01be8738fcf
diff --git a/src/components/HistoryView.tsx b/src/components/HistoryView.tsxindex 15f954a09..7fe6acfd1 100644--- a/src/components/HistoryView.tsx+++ b/src/components/HistoryView.tsx@@ -45,7 +45,7 @@ export default function HistoryView({onRetryTranscription,}: HistoryViewProps) {const { t } = useTranslation();- const textRetentionEnabled = useSettingsStore((s) => s.textRetentionEnabled);+ const dataRetentionEnabled = useSettingsStore((s) => s.dataRetentionEnabled);const { events, isLoading: eventsLoading, isConnected } = useUpcomingEvents();const groupedHistory = useMemo(() => {@@ -157,11 +157,11 @@ export default function HistoryView({</span></div>)}- {!textRetentionEnabled && (+ {!dataRetentionEnabled && (<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")}+ {t("controlPanel.history.dataRetentionDisabled")}</p></div>)}diff --git a/src/components/SettingsPage.tsx b/src/components/SettingsPage.tsxindex c1f7d790a..41aaee4e8 100644--- a/src/components/SettingsPage.tsx+++ b/src/components/SettingsPage.tsx@@ -711,8 +711,8 @@ export default function SettingsPage({ activeSection = "general" }: SettingsPagesetTelemetryEnabled,audioRetentionDays,setAudioRetentionDays,- textRetentionEnabled,- setTextRetentionEnabled,+ dataRetentionEnabled,+ setDataRetentionEnabled,customDictionary,setCustomDictionary,} = useSettings();@@ -3249,22 +3249,17 @@ EOF`,</SettingsPanel></div>- {/* Text Retention */}+ {/* Data 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")}+ label={t("settingsPage.privacy.dataRetention")}+ description={t("settingsPage.privacy.dataRetentionDescription")}><Toggle- checked={textRetentionEnabled}- onChange={setTextRetentionEnabled}+ checked={dataRetentionEnabled}+ onChange={setDataRetentionEnabled}/></SettingsRow></SettingsPanelRow>diff --git a/src/helpers/audioManager.js b/src/helpers/audioManager.jsindex 5b42c07d0..1caa713e3 100644--- a/src/helpers/audioManager.js+++ b/src/helpers/audioManager.js@@ -1926,8 +1926,8 @@ registerProcessor("pcm-streaming-processor", PCMStreamingProcessor);}async saveTranscription(text, rawText = null) {- if (!getSettings().textRetentionEnabled) {- logger.debug("Skipping transcription save — text retention disabled", {}, "audio");+ if (!getSettings().dataRetentionEnabled) {+ logger.debug("Skipping transcription save — data retention disabled", {}, "audio");this.lastAudioBlob = null;this.lastAudioMetadata = null;return true;@@ -1960,8 +1960,8 @@ registerProcessor("pcm-streaming-processor", PCMStreamingProcessor);}async saveFailedTranscription(errorMessage, metadata = {}) {- if (!getSettings().textRetentionEnabled) {- logger.debug("Skipping failed transcription save — text retention disabled", {}, "audio");+ if (!getSettings().dataRetentionEnabled) {+ logger.debug("Skipping failed transcription save — data retention disabled", {}, "audio");this.lastAudioBlob = null;this.lastAudioMetadata = null;return;diff --git a/src/hooks/useSettings.ts b/src/hooks/useSettings.tsindex 19ccbcbdb..7c563be18 100644--- a/src/hooks/useSettings.ts+++ b/src/hooks/useSettings.ts@@ -55,7 +55,7 @@ export interface PrivacySettings {cloudBackupEnabled: boolean;telemetryEnabled: boolean;audioRetentionDays: number;- textRetentionEnabled: boolean;+ dataRetentionEnabled: boolean;}export interface ThemeSettings {@@ -249,8 +249,8 @@ function useSettingsInternal() {setTelemetryEnabled: store.setTelemetryEnabled,audioRetentionDays: store.audioRetentionDays,setAudioRetentionDays: store.setAudioRetentionDays,- textRetentionEnabled: store.textRetentionEnabled,- setTextRetentionEnabled: store.setTextRetentionEnabled,+ dataRetentionEnabled: store.dataRetentionEnabled,+ setDataRetentionEnabled: store.setDataRetentionEnabled,updateTranscriptionSettings: store.updateTranscriptionSettings,updateReasoningSettings: store.updateReasoningSettings,updateApiKeys: store.updateApiKeys,diff --git a/src/locales/de/translation.json b/src/locales/de/translation.jsonindex f2740f626..e3f894b91 100644--- a/src/locales/de/translation.json+++ b/src/locales/de/translation.json@@ -227,7 +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.",+ "dataRetentionDisabled": "Datenaufbewahrung ist deaktiviert. Transkriptionen und Audio werden nicht im Verlauf gespeichert.","press": "Drücken Sie","toStart": "zum Starten","dateGroups": {@@ -1324,8 +1324,8 @@"title": "Datenschutz","usageAnalytics": "Nutzungsanalysen","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."+ "dataRetention": "Datenaufbewahrung",+ "dataRetentionDescription": "Transkriptionen und Audio 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 bd49d244f..fbeeda04b 100644--- a/src/locales/en/translation.json+++ b/src/locales/en/translation.json@@ -227,7 +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.",+ "dataRetentionDisabled": "Data retention is off. Transcriptions and audio are not saved to history.","press": "Press","toStart": "to start","dateGroups": {@@ -1394,8 +1394,8 @@"audioStorageEmpty": "No audio files stored","clearAllAudio": "Clear All Audio","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."+ "dataRetention": "Data Retention",+ "dataRetentionDescription": "Store transcriptions and audio 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 2a9824baf..3a30a27d6 100644--- a/src/locales/es/translation.json+++ b/src/locales/es/translation.json@@ -227,7 +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.",+ "dataRetentionDisabled": "La retención de datos está desactivada. Las transcripciones y el audio no se guardan en el historial.","press": "Pulsa","toStart": "para empezar","dateGroups": {@@ -1324,8 +1324,8 @@"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.",- "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."+ "dataRetention": "Retención de datos",+ "dataRetentionDescription": "Almacenar transcripciones y audio 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 5bd28cfce..5cbaa5566 100644--- a/src/locales/fr/translation.json+++ b/src/locales/fr/translation.json@@ -227,7 +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.",+ "dataRetentionDisabled": "La conservation des données 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": {@@ -1324,8 +1324,8 @@"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.",- "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."+ "dataRetention": "Conservation des données",+ "dataRetentionDescription": "Stocker les transcriptions et l'audio 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 a036d4f48..932c3f44e 100644--- a/src/locales/it/translation.json+++ b/src/locales/it/translation.json@@ -227,7 +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.",+ "dataRetentionDisabled": "La conservazione dei dati è disattivata. Trascrizioni e audio non vengono salvati nella cronologia.","press": "Premi","toStart": "per iniziare","dateGroups": {@@ -1324,8 +1324,8 @@"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.",- "textRetention": "Conservazione del testo",- "textRetentionDescription": "Salva il testo delle trascrizioni localmente nella cronologia. Se disattivato, le trascrizioni vengono incollate ma non salvate."+ "dataRetention": "Conservazione dei dati",+ "dataRetentionDescription": "Salva trascrizioni e audio 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 9678bcfe6..dedd2de41 100644--- a/src/locales/ja/translation.json+++ b/src/locales/ja/translation.json@@ -227,7 +227,7 @@"couldNotDeleteDescription": "この文字起こしは既に削除されている可能性があります。","couldNotDeleteDescriptionGeneric": "問題が発生しました。もう一度お試しください。","empty": "文字起こし履歴はまだありません",- "textRetentionDisabled": "テキスト保持が無効です。文字起こしと音声は履歴に保存されません。",+ "dataRetentionDisabled": "データ保持が無効です。文字起こしと音声は履歴に保存されません。","press": "押してください","toStart": "開始するには","dateGroups": {@@ -1324,8 +1324,8 @@"title": "プライバシー","usageAnalytics": "使用状況の分析","usageAnalyticsDescription": "匿名のパフォーマンスデータを共有して OpenWhispr の改善にご協力ください。文字起こしの内容は送信されません。タイミングとエラーデータのみです。",- "textRetention": "テキスト保持",- "textRetentionDescription": "文字起こしテキストを履歴にローカル保存します。無効にすると、文字起こしは貼り付けられますが保存されません。"+ "dataRetention": "データ保持",+ "dataRetentionDescription": "文字起こしと音声を履歴にローカル保存します。無効にすると、文字起こしは貼り付けられますが保存されません。"},"prompts": {"description": "テキスト補正と指示検出を行う統合システムプロンプトの表示、カスタマイズ、テスト",diff --git a/src/locales/pt/translation.json b/src/locales/pt/translation.jsonindex c85130494..b6decda3d 100644--- a/src/locales/pt/translation.json+++ b/src/locales/pt/translation.json@@ -199,7 +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.",+ "dataRetentionDisabled": "A retenção de dados está desativada. Transcrições e áudio não são salvos no histórico.","press": "Pressione","toStart": "para iniciar","dateGroups": {@@ -1296,8 +1296,8 @@"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.",- "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."+ "dataRetention": "Retenção de dados",+ "dataRetentionDescription": "Armazenar transcrições e áudio 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 0e70e53e1..2aa430c0e 100644--- a/src/locales/ru/translation.json+++ b/src/locales/ru/translation.json@@ -227,7 +227,7 @@"couldNotDeleteDescription": "Эта транскрипция, возможно, уже была удалена.","couldNotDeleteDescriptionGeneric": "Что-то пошло не так. Попробуйте снова.","empty": "Транскрипций пока нет",- "textRetentionDisabled": "Хранение текста отключено. Транскрипции и аудио не сохраняются в истории.",+ "dataRetentionDisabled": "Хранение данных отключено. Транскрипции и аудио не сохраняются в истории.","press": "Нажмите","toStart": "чтобы начать","dateGroups": {@@ -1324,8 +1324,8 @@"title": "Конфиденциальность","usageAnalytics": "Аналитика использования","usageAnalyticsDescription": "Помогите нам улучшить OpenWhispr, делясь анонимными метриками производительности. Мы никогда не отправляем содержимое транскрипций — только данные о времени и ошибках.",- "textRetention": "Хранение текста",- "textRetentionDescription": "Сохранять текст транскрипций локально в истории. При отключении транскрипции вставляются, но не сохраняются."+ "dataRetention": "Хранение данных",+ "dataRetentionDescription": "Сохранять транскрипции и аудио локально в истории. При отключении транскрипции вставляются, но не сохраняются."},"prompts": {"description": "Просматривайте, настраивайте и тестируйте единый системный промпт, который управляет очисткой текста и обнаружением инструкций",diff --git a/src/locales/zh-CN/translation.json b/src/locales/zh-CN/translation.jsonindex 4b4cba300..242515edb 100644--- a/src/locales/zh-CN/translation.json+++ b/src/locales/zh-CN/translation.json@@ -227,7 +227,7 @@"couldNotDeleteDescription": "此转录记录可能已被删除。","couldNotDeleteDescriptionGeneric": "出了点问题,请重试。","empty": "暂无转录记录",- "textRetentionDisabled": "文本保留已关闭。转录和音频不会保存到历史记录。",+ "dataRetentionDisabled": "数据保留已关闭。转录和音频不会保存到历史记录。","press": "按下","toStart": "开始","dateGroups": {@@ -1324,8 +1324,8 @@"title": "隐私","usageAnalytics": "使用分析","usageAnalyticsDescription": "通过分享匿名性能数据帮助我们改进 OpenWhispr。我们绝不发送转录内容——仅发送计时和错误数据。",- "textRetention": "文本保留",- "textRetentionDescription": "将转录文本本地保存到历史记录中。禁用后,转录内容会被粘贴但不会被保存。"+ "dataRetention": "数据保留",+ "dataRetentionDescription": "将转录和音频本地保存到历史记录中。禁用后,转录内容会被粘贴但不会被保存。"},"prompts": {"description": "查看、自定义和测试用于文本整理和指令识别的统一系统提示词",diff --git a/src/locales/zh-TW/translation.json b/src/locales/zh-TW/translation.jsonindex 158731b94..e30c6f42f 100644--- a/src/locales/zh-TW/translation.json+++ b/src/locales/zh-TW/translation.json@@ -227,7 +227,7 @@"couldNotDeleteDescription": "這筆轉錄記錄可能已被移除。","couldNotDeleteDescriptionGeneric": "發生錯誤,請再試一次。","empty": "目前沒有轉錄記錄",- "textRetentionDisabled": "文字保留已關閉。轉錄和音訊不會儲存至歷史記錄。",+ "dataRetentionDisabled": "資料保留已關閉。轉錄和音訊不會儲存至歷史記錄。","press": "按下","toStart": "開始","dateGroups": {@@ -1324,8 +1324,8 @@"title": "隱私權","usageAnalytics": "使用分析","usageAnalyticsDescription": "分享匿名的效能指標,協助我們改善 OpenWhispr。我們絕不會傳送轉錄內容——只有計時和錯誤資料。",- "textRetention": "文字保留",- "textRetentionDescription": "將轉錄文字本地儲存至歷史記錄。停用後,轉錄內容會被貼上但不會被儲存。"+ "dataRetention": "資料保留",+ "dataRetentionDescription": "將轉錄和音訊本地儲存至歷史記錄。停用後,轉錄內容會被貼上但不會被儲存。"},"prompts": {"description": "檢視、自訂和測試用於文字整理和指令偵測的統一系統提示詞",diff --git a/src/stores/settingsStore.ts b/src/stores/settingsStore.tsindex 824c8f9f4..2666bf1a3 100644--- a/src/stores/settingsStore.ts+++ b/src/stores/settingsStore.ts@@ -64,7 +64,7 @@ const BOOLEAN_SETTINGS = new Set(["isSignedIn","agentEnabled","keepTranscriptionInClipboard",- "textRetentionEnabled",+ "dataRetentionEnabled",]);const ARRAY_SETTINGS = new Set(["customDictionary", "gcalAccounts"]);@@ -146,7 +146,7 @@ export interface SettingsStatesetCloudBackupEnabled: (value: boolean) => void;setTelemetryEnabled: (value: boolean) => void;setAudioRetentionDays: (days: number) => void;- setTextRetentionEnabled: (value: boolean) => void;+ setDataRetentionEnabled: (value: boolean) => void;setAudioCuesEnabled: (value: boolean) => void;setPauseMediaOnDictation: (value: boolean) => void;setFloatingIconAutoHide: (enabled: boolean) => void;@@ -281,7 +281,7 @@ export const useSettingsStore = create<SettingsState>()((set, get) => ({const parsed = parseInt(stored, 10);return isNaN(parsed) ? 30 : parsed;})(),- textRetentionEnabled: readBoolean("textRetentionEnabled", true),+ dataRetentionEnabled: readBoolean("dataRetentionEnabled", true),audioCuesEnabled: readBoolean("audioCuesEnabled", true),pauseMediaOnDictation: readBoolean("pauseMediaOnDictation", false),floatingIconAutoHide: readBoolean("floatingIconAutoHide", false),@@ -447,13 +447,13 @@ 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 });+ setDataRetentionEnabled: (value: boolean) => {+ if (isBrowser) localStorage.setItem("dataRetentionEnabled", String(value));+ set({ dataRetentionEnabled: value });logger.info(value- ? "Text retention enabled — transcriptions and audio will be saved"- : "Text retention disabled — transcriptions and audio will not be saved",+ ? "Data retention enabled — transcriptions and audio will be saved"+ : "Data retention disabled — transcriptions and audio will not be saved",{},"settings");