Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

feat: persist segment timestamps in saved meeting transcripts

Gabriel Stein37cb172350c3
diff --git a/src/components/notes/NoteEditor.tsx b/src/components/notes/NoteEditor.tsx
index 463996bda..dc86a2bf0 100644
--- a/src/components/notes/NoteEditor.tsx
+++ b/src/components/notes/NoteEditor.tsx
@@ -381,8 +381,17 @@ export default function NoteEditor({
const raw = note.transcript || "";
if (raw.startsWith("[")) {
try {
- const parsed = JSON.parse(raw) as Array<{ text: string; source: "mic" | "system" }>;
- return parsed.map((s, i) => ({ id: `stored-${i}`, text: s.text, source: s.source }));
+ const parsed = JSON.parse(raw) as Array<{
+ text: string;
+ source: "mic" | "system";
+ timestamp?: number;
+ }>;
+ return parsed.map((s, i) => ({
+ id: `stored-${i}`,
+ text: s.text,
+ source: s.source,
+ timestamp: s.timestamp,
+ }));
} catch {}
}
return [];
diff --git a/src/components/notes/PersonalNotesView.tsx b/src/components/notes/PersonalNotesView.tsx
index b73b085c4..17440f842 100644
--- a/src/components/notes/PersonalNotesView.tsx
+++ b/src/components/notes/PersonalNotesView.tsx
@@ -413,7 +413,9 @@ export default function PersonalNotesView({
) {
const transcript =
meetingSegments.length > 0
- ? JSON.stringify(meetingSegments.map(({ text, source }) => ({ text, source })))
+ ? JSON.stringify(
+ meetingSegments.map(({ text, source, timestamp }) => ({ text, source, timestamp }))
+ )
: meetingTranscript;
window.electronAPI.updateNote(meetingNoteIdRef.current, {
transcript,
@@ -796,9 +798,7 @@ export default function PersonalNotesView({
const parts = [
hasNotes ? localContent : "",
- formattedTranscript
- ? `## Meeting Transcript\n${formattedTranscript}`
- : "",
+ formattedTranscript ? `## Meeting Transcript\n${formattedTranscript}` : "",
]
.filter(Boolean)
.join("\n\n");