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(meeting): enable echo cancellation on mic and add note metadata chips
Gabriel Steinda1eb525daa9
diff --git a/CLAUDE.md b/CLAUDE.mdindex 70e1887aa..b94cd01fa 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -261,9 +261,9 @@ CREATE TABLE transcriptions (Settings stored in localStorage with these keys:- `whisperModel`: Selected Whisper model- `useLocalWhisper`: Boolean for local vs cloud-- `openaiApiKey`: Encrypted API key-- `anthropicApiKey`: Encrypted API key-- `geminiApiKey`: Encrypted API key+- `openaiApiKey`: API key (plaintext)+- `anthropicApiKey`: API key (plaintext)+- `geminiApiKey`: API key (plaintext)- `language`: Selected language code- `agentName`: User's custom agent name- `reasoningModel`: Selected AI model for processing@@ -693,7 +693,7 @@ const { t } = useTranslation();## Security Considerations-- API keys stored in system keychain when possible+- API keys stored in plaintext in userData `.env` and localStorage (not yet encrypted — see #532)- Context isolation enabled- No remote code execution- Sanitized file pathsdiff --git a/SECURITY.md b/SECURITY.mdindex ff934f7fa..f2c816f35 100644--- a/SECURITY.md+++ b/SECURITY.md@@ -39,8 +39,11 @@ Out of scope:- **Local-first audio processing** — Audio is transcribed on-device usingwhisper.cpp or nvidia parakeet. Recordings are not sent to external servers unless explicitlyconfigured by the user.-- **Credential storage** — Sensitive credentials are stored using Electron's- `safeStorage` API where available.+- **Credential storage** — API keys provided by users (BYOK) are stored in+ plaintext in the app's `userData` directory (`.env` file and Electron+ `localStorage`). They are readable by any process running as the current OS+ user. Migrating to Electron's `safeStorage` API for platform-native+ encryption is tracked in [#532](https://github.com/OpenWhispr/openwhispr/issues/532).- **Native binaries** — Platform-specific helpers (key listeners, pasteutilities) are compiled from source during the build process.- **Context isolation** — The Electron renderer runs with context isolationdiff --git a/preload.js b/preload.jsindex 28b9ff09e..85cd06f82 100644--- a/preload.js+++ b/preload.js@@ -634,6 +634,7 @@ contextBridge.exposeInMainWorld("electronAPI", {gcalSyncEvents: () => ipcRenderer.invoke("gcal-sync-events"),gcalGetUpcomingEvents: (windowMinutes) =>ipcRenderer.invoke("gcal-get-upcoming-events", windowMinutes),+ gcalGetEvent: (eventId) => ipcRenderer.invoke("gcal-get-event", eventId),// Google Calendar event listenersonGcalMeetingStarting: registerListener(diff --git a/src/components/notes/NoteEditor.tsx b/src/components/notes/NoteEditor.tsxindex 654b9f0cd..44a965d13 100644--- a/src/components/notes/NoteEditor.tsx+++ b/src/components/notes/NoteEditor.tsx@@ -1,6 +1,6 @@import { useState, useRef, useEffect, useMemo, useCallback } from "react";import { useTranslation } from "react-i18next";-import { Download, Loader2, FileText, Sparkles, AlignLeft, MessageSquareText } from "lucide-react";+import { Download, Loader2, FileText, Sparkles, AlignLeft, MessageSquareText, Calendar, LinkIcon, FolderOpen, Users } from "lucide-react";import { RichTextEditor } from "../ui/RichTextEditor";import type { Editor } from "@tiptap/react";import { MeetingTranscriptChat } from "./MeetingTranscriptChat";@@ -33,6 +33,12 @@ function formatNoteDate(dateStr: string): string {return `${datePart} \u00b7 ${timePart}`;}+function formatShortDate(dateStr: string): string {+ const date = normalizeDbDate(dateStr);+ if (Number.isNaN(date.getTime())) return "";+ return date.toLocaleDateString(undefined, { month: "short", day: "numeric" });+}+export interface Enhancement {content: string;isStale: boolean;@@ -62,6 +68,8 @@ interface NoteEditorProps {meetingSystemPartial?: string;onStopMeetingRecording?: () => void;liveTranscript?: string;+ folderName?: string | null;+ calendarEventName?: string | null;}export default function NoteEditor({@@ -85,6 +93,8 @@ export default function NoteEditor({meetingSystemPartial,onStopMeetingRecording,liveTranscript,+ folderName,+ calendarEventName,}: NoteEditorProps) {const { t } = useTranslation();const [viewMode, setViewMode] = useState<MeetingViewMode>("raw");@@ -231,6 +241,7 @@ export default function NoteEditor({);const noteDate = formatNoteDate(note.created_at);+ const shortDate = formatShortDate(note.created_at);return (<div className="flex flex-col h-full min-h-0">@@ -247,17 +258,43 @@ export default function NoteEditor({role="textbox"aria-label={t("notes.editor.noteTitle")}/>- <div className="flex items-center mt-1">- <div className="flex items-center text-xs text-foreground/50 dark:text-foreground/20 min-w-0">- {noteDate && <span>{noteDate}</span>}- {noteDate && isSaving && <span className="mx-1.5">·</span>}- {isSaving && (- <span className="tabular-nums flex items-center gap-1 shrink-0">- <Loader2 size={8} className="animate-spin" />- {t("notes.editor.saving")}- </span>- )}- </div>+ {/* Metadata chips row — Granola-inspired */}+ <div className="flex items-center gap-2 mt-1.5 mb-1 flex-wrap">+ {shortDate && (+ <span+ className="inline-flex items-center gap-1.5 text-[11px] text-foreground/40 dark:text-foreground/25"+ title={noteDate}+ >+ <Calendar size={11} className="shrink-0" />+ {shortDate}+ </span>+ )}+ {calendarEventName && (+ <span className="inline-flex items-center gap-1.5 text-[11px] text-foreground/40 dark:text-foreground/25">+ <LinkIcon size={11} className="shrink-0" />+ <span className="truncate max-w-40">{calendarEventName}</span>+ </span>+ )}+ {folderName && (+ <span className="inline-flex items-center gap-1.5 text-[11px] text-foreground/40 dark:text-foreground/25">+ <FolderOpen size={11} className="shrink-0" />+ {folderName}+ </span>+ )}+ {note.note_type === "meeting" && (+ <span className="inline-flex items-center gap-1.5 text-[11px] text-foreground/20 dark:text-foreground/12">+ <Users size={11} className="shrink-0" />+ {t("notes.editor.participants")}+ </span>+ )}+ {isSaving && (+ <span className="inline-flex items-center gap-1 text-[11px] text-foreground/30 dark:text-foreground/15 tabular-nums">+ <Loader2 size={8} className="animate-spin" />+ {t("notes.editor.saving")}+ </span>+ )}+ </div>+ <div className="flex items-center"><div className="flex-1" /><div className="flex items-center gap-1">{(enhancement || hasMeetingTranscript || hasChatSegments || isMeetingRecording) && (diff --git a/src/components/notes/PersonalNotesView.tsx b/src/components/notes/PersonalNotesView.tsxindex 16f8cdf00..d1f1f4859 100644--- a/src/components/notes/PersonalNotesView.tsx+++ b/src/components/notes/PersonalNotesView.tsx@@ -138,6 +138,23 @@ export default function PersonalNotesView({const activeNote = notes.find((n) => n.id === activeNoteId) ?? null;+ // Derive folder name and calendar event name for the metadata chips+ const activeFolderName = useMemo(() => {+ if (!activeNote?.folder_id) return null;+ return folders.find((f) => f.id === activeNote.folder_id)?.name ?? null;+ }, [activeNote?.folder_id, folders]);++ const [calendarEventName, setCalendarEventName] = useState<string | null>(null);+ useEffect(() => {+ if (!activeNote?.calendar_event_id) {+ setCalendarEventName(null);+ return;+ }+ window.electronAPI.gcalGetEvent?.(activeNote.calendar_event_id).then((result) => {+ setCalendarEventName(result?.success && result.event?.summary ? result.event.summary : null);+ });+ }, [activeNote?.calendar_event_id]);+// Note recording uses the same meeting transcription pipeline.// The `isMeetingMode` ref distinguishes whether the recording was triggered// by the meeting hotkey (creates a separate note) or the note record button.@@ -827,6 +844,8 @@ export default function PersonalNotesView({meetingSystemPartial={systemPartial}onStopMeetingRecording={stopTranscription}liveTranscript={isTranscribing ? realtimeTranscript : ""}+ folderName={activeFolderName}+ calendarEventName={calendarEventName}actionProcessingState={actionProcessingState}actionName={actionName}actionPicker={diff --git a/src/helpers/database.js b/src/helpers/database.jsindex 004a32db5..40523b485 100644--- a/src/helpers/database.js+++ b/src/helpers/database.js@@ -1194,6 +1194,16 @@ class DatabaseManager {}}+ getCalendarEventById(eventId) {+ try {+ if (!this.db) throw new Error("Database not initialized");+ return this.db.prepare("SELECT * FROM calendar_events WHERE id = ?").get(eventId) || null;+ } catch (error) {+ debugLogger.error("Error getting calendar event by id", { error: error.message }, "gcal");+ return null;+ }+ }+clearCalendarData() {try {if (!this.db) throw new Error("Database not initialized");diff --git a/src/helpers/ipcHandlers.js b/src/helpers/ipcHandlers.jsindex a8346448f..6472da47c 100644--- a/src/helpers/ipcHandlers.js+++ b/src/helpers/ipcHandlers.js@@ -4404,6 +4404,15 @@ class IPCHandlers {}});+ ipcMain.handle("gcal-get-event", async (_event, eventId) => {+ try {+ const event = this.databaseManager.getCalendarEventById(eventId);+ return { success: true, event };+ } catch (error) {+ return { success: false, event: null };+ }+ });+ipcMain.handle("meeting-detection-get-preferences", async () => {try {return { success: true, preferences: this.meetingDetectionEngine.getPreferences() };diff --git a/src/hooks/useMeetingTranscription.ts b/src/hooks/useMeetingTranscription.tsindex 36e7a0090..4f6f25580 100644--- a/src/hooks/useMeetingTranscription.ts+++ b/src/hooks/useMeetingTranscription.ts@@ -90,7 +90,7 @@ registerProcessor("meeting-pcm-processor", MeetingPCMProcessor);const getMeetingMicConstraints = async (): Promise<MediaStreamConstraints> => {const { preferBuiltInMic, selectedMicDeviceId } = getSettings();const micProcessing = {- echoCancellation: false,+ echoCancellation: true,noiseSuppression: false,autoGainControl: false,};diff --git a/src/locales/de/translation.json b/src/locales/de/translation.jsonindex 989365adc..8d4a32924 100644--- a/src/locales/de/translation.json+++ b/src/locales/de/translation.json@@ -1571,7 +1571,10 @@"live": "Live","transcript": "Transkript","notes": "Notizen",- "conversationWillAppear": "Gespräch wird hier angezeigt..."+ "conversationWillAppear": "Gespräch wird hier angezeigt...",+ "linkedEvent": "Verknüpftes Ereignis",+ "noFolder": "Kein Ordner",+ "participants": "Teilnehmer"},"upload": {"title": "Audio hochladen",diff --git a/src/locales/en/translation.json b/src/locales/en/translation.jsonindex 1c202113c..c500081ee 100644--- a/src/locales/en/translation.json+++ b/src/locales/en/translation.json@@ -1680,7 +1680,10 @@"live": "Live","transcript": "Transcript","notes": "Notes",- "conversationWillAppear": "Conversation will appear here..."+ "conversationWillAppear": "Conversation will appear here...",+ "linkedEvent": "Linked event",+ "noFolder": "No folder",+ "participants": "Participants"},"upload": {"title": "Upload Audio",diff --git a/src/locales/es/translation.json b/src/locales/es/translation.jsonindex 6d48e01bc..dc068419a 100644--- a/src/locales/es/translation.json+++ b/src/locales/es/translation.json@@ -1571,7 +1571,10 @@"live": "En vivo","transcript": "Transcripción","notes": "Notas",- "conversationWillAppear": "La conversación aparecerá aquí..."+ "conversationWillAppear": "La conversación aparecerá aquí...",+ "linkedEvent": "Evento vinculado",+ "noFolder": "Sin carpeta",+ "participants": "Participantes"},"upload": {"title": "Subir audio",diff --git a/src/locales/fr/translation.json b/src/locales/fr/translation.jsonindex 09768f151..e57250ad6 100644--- a/src/locales/fr/translation.json+++ b/src/locales/fr/translation.json@@ -1632,7 +1632,10 @@"live": "En direct","transcript": "Transcription","notes": "Notes",- "conversationWillAppear": "La conversation apparaîtra ici..."+ "conversationWillAppear": "La conversation apparaîtra ici...",+ "linkedEvent": "Événement lié",+ "noFolder": "Aucun dossier",+ "participants": "Participants"},"upload": {"title": "Téléverser un fichier audio",diff --git a/src/locales/it/translation.json b/src/locales/it/translation.jsonindex 5ecbb05fa..031542d5c 100644--- a/src/locales/it/translation.json+++ b/src/locales/it/translation.json@@ -1571,7 +1571,10 @@"live": "Dal vivo","transcript": "Trascrizione","notes": "Note",- "conversationWillAppear": "La conversazione apparirà qui..."+ "conversationWillAppear": "La conversazione apparirà qui...",+ "linkedEvent": "Evento collegato",+ "noFolder": "Nessuna cartella",+ "participants": "Partecipanti"},"upload": {"title": "Carica audio",diff --git a/src/locales/ja/translation.json b/src/locales/ja/translation.jsonindex ac71a3615..ff69ed46c 100644--- a/src/locales/ja/translation.json+++ b/src/locales/ja/translation.json@@ -1471,6 +1471,9 @@"transcript": "文字起こし","notes": "ノート","conversationWillAppear": "会話がここに表示されます...",+ "linkedEvent": "リンクされたイベント",+ "noFolder": "フォルダなし",+ "participants": "参加者","untitled": "無題","noteTitle": "ノートのタイトル","stop": "停止",diff --git a/src/locales/pt/translation.json b/src/locales/pt/translation.jsonindex 150c04f46..851cac1d4 100644--- a/src/locales/pt/translation.json+++ b/src/locales/pt/translation.json@@ -1571,7 +1571,10 @@"live": "Ao vivo","transcript": "Transcrição","notes": "Notas",- "conversationWillAppear": "A conversa aparecerá aqui..."+ "conversationWillAppear": "A conversa aparecerá aqui...",+ "linkedEvent": "Evento vinculado",+ "noFolder": "Sem pasta",+ "participants": "Participantes"},"upload": {"title": "Enviar áudio",diff --git a/src/locales/ru/translation.json b/src/locales/ru/translation.jsonindex 2d8d41697..75a1dd4f5 100644--- a/src/locales/ru/translation.json+++ b/src/locales/ru/translation.json@@ -1571,7 +1571,10 @@"live": "Живой","transcript": "Транскрипция","notes": "Заметки",- "conversationWillAppear": "Разговор появится здесь..."+ "conversationWillAppear": "Разговор появится здесь...",+ "linkedEvent": "Связанное событие",+ "noFolder": "Без папки",+ "participants": "Участники"},"upload": {"title": "Загрузить аудио",diff --git a/src/locales/zh-CN/translation.json b/src/locales/zh-CN/translation.jsonindex d8313ac35..e01fa9768 100644--- a/src/locales/zh-CN/translation.json+++ b/src/locales/zh-CN/translation.json@@ -1566,7 +1566,10 @@"live": "实时","transcript": "转录","notes": "笔记",- "conversationWillAppear": "对话将显示在这里..."+ "conversationWillAppear": "对话将显示在这里...",+ "linkedEvent": "关联日程",+ "noFolder": "无文件夹",+ "participants": "参与者"},"upload": {"title": "上传音频",diff --git a/src/locales/zh-TW/translation.json b/src/locales/zh-TW/translation.jsonindex 2f9b354ac..1285dabc9 100644--- a/src/locales/zh-TW/translation.json+++ b/src/locales/zh-TW/translation.json@@ -1566,7 +1566,10 @@"live": "即時","transcript": "轉錄","notes": "筆記",- "conversationWillAppear": "對話將顯示在這裡..."+ "conversationWillAppear": "對話將顯示在這裡...",+ "linkedEvent": "關聯行程",+ "noFolder": "無資料夾",+ "participants": "參與者"},"upload": {"title": "上傳音訊",diff --git a/src/types/electron.ts b/src/types/electron.tsindex 4679ccc53..bb48f7cad 100644--- a/src/types/electron.ts+++ b/src/types/electron.ts@@ -1181,6 +1181,9 @@ declare global {gcalGetUpcomingEvents?: (windowMinutes?: number) => Promise<{ success: boolean; events: any[] }>;+ gcalGetEvent?: (+ eventId: string+ ) => Promise<{ success: boolean; event: { id: string; summary: string | null; start_time: string; end_time: string; attendees_count: number } | null }>;// Meeting chain transcription (BaseTen)meetingTranscribeChain?: (