mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-19 18:35:18 +02:00
organize meeting notes better
This commit is contained in:
parent
a5f71497af
commit
434f88f194
1 changed files with 3 additions and 2 deletions
|
|
@ -338,12 +338,13 @@ export function useMeetingTranscription(onAutoStop?: () => void) {
|
||||||
merger.connect(processor);
|
merger.connect(processor);
|
||||||
processor.connect(audioCtx.destination);
|
processor.connect(audioCtx.destination);
|
||||||
|
|
||||||
// Create the note file
|
// Create the note file, organized by date like voice memos
|
||||||
const now = new Date();
|
const now = new Date();
|
||||||
const dateStr = now.toISOString();
|
const dateStr = now.toISOString();
|
||||||
dateRef.current = dateStr;
|
dateRef.current = dateStr;
|
||||||
|
const dateFolder = dateStr.split('T')[0]; // YYYY-MM-DD
|
||||||
const timestamp = dateStr.replace(/:/g, '-').replace(/\.\d+Z$/, '');
|
const timestamp = dateStr.replace(/:/g, '-').replace(/\.\d+Z$/, '');
|
||||||
const notePath = `knowledge/Meetings/rowboat/meeting-${timestamp}.md`;
|
const notePath = `knowledge/Meetings/rowboat/${dateFolder}/meeting-${timestamp}.md`;
|
||||||
notePathRef.current = notePath;
|
notePathRef.current = notePath;
|
||||||
|
|
||||||
const initialContent = formatTranscript([], dateStr);
|
const initialContent = formatTranscript([], dateStr);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue