Private AI meeting notes that stay on your computer. No meeting bot. Free and open source for Mac, Windows and Linux. An alternative to Granola, Otter and Fireflies.
TypeScript ai-meeting-assistantai-notetakerelectrongranola-alternativelinuxllama-cpplocal-ailocal-firstmacosmcpmeeting-minutesmeeting-notesoffline-firstopen-sourceprivacyspeech-to-texttranscriptionwhisperwhisper-cppwindows
Calls: Join and record stops by itself once its call has ended, like a recording started from the call card; New note still asks first (#100)
christianmat4d337c4c4278
diff --git a/README.md b/README.mdindex 87d47bdf..20f1bede 100644--- a/README.md+++ b/README.md@@ -43,7 +43,7 @@- **Folders and search.** You can find meetings by folder, title, notes or transcript.- **Copy and export.** You can copy notes or transcripts, or save both as Markdown.- **Local MCP server.** When you turn this on, apps on your computer can read your notes, transcripts, saved audio and each meeting's calendar details (attendees' names and emails).-- **Automatic stop.** By default, Yogurt stops recording when it detects that your call has ended.+- **Automatic stop.** By default, Yogurt stops recording when it detects that your call has ended. A recording you start yourself with New note asks first instead, since it may not be a call.## Watch the demodiff --git a/app/src/main/index.ts b/app/src/main/index.tsindex 9f36b45b..f2b8134c 100644--- a/app/src/main/index.ts+++ b/app/src/main/index.ts@@ -426,7 +426,8 @@ function startDetection() {os: platform,host: process.platform === 'linux' && !BACKGROUND ? linuxTrayHost : undefined,event: (event, join) => {- begin({ title: event.title, event, app: null })+ const m = begin({ title: event.title, event, app: null })+ if (join && m) watcher.joined(m.id)if (join && event.url) openExternally(event.url.trim())},})diff --git a/app/src/main/watch.ts b/app/src/main/watch.tsindex 806511f2..4b4ca1d3 100644--- a/app/src/main/watch.ts+++ b/app/src/main/watch.ts@@ -53,6 +53,9 @@ export class Watcher {constructor(private d: WatchDeps) {}+ /** recordings started with Join and record: plainly a call, so it may stop by itself once that call has ended (#100) */+ private joins = new Set<string>()+ joined(meetingId: string) { this.joins.add(meetingId) }/** the person closed the start card */dismiss(key: string) { this.dismissed.add(key); this.shown = null }/** "Keep going": ask again in a while, not every tick */@@ -112,8 +115,9 @@ export class Watcher {private recording(m: Meeting, s: Signals, now: number) {const starting = this.rec?.id !== m.id- // started by hand (no call app yet: New note, the agenda): never stopped by itself, only asked about- const byHand = starting ? !m.app : this.rec!.byHand+ // started by hand (no call app yet: New note, the agenda): never stopped by itself, only asked about. Join and record+ // starts with no app too, but it is a call: like a card start it stops once its call app was on the mic and has gone+ const byHand = starting ? !m.app && !this.joins.has(m.id) : this.rec!.byHandconst recent = starting && this.idleCall && now - this.idleCall.at <= 6000 ? this.idleCall.app : nullconst observed = decide({ ...s, recording: false }, now, new Set())?.app ?? nullif (!m.app && (observed || recent)) {diff --git a/app/test/watch.test.ts b/app/test/watch.test.tsindex 182dda2e..b5769a35 100644--- a/app/test/watch.test.ts+++ b/app/test/watch.test.ts@@ -255,6 +255,31 @@ describe('stops by itself when the call ends', () => {reading = { micApps: [], events: [] }; clock += 30_000; await w.tick()expect(log).toEqual(['stop'])})+ // #100: Join and record is plainly a call. It starts with no call app (the browser or Zoom opens after), so it would+ // count as started by hand; once its call app has been on the mic and the call ends, it stops by itself like a card start.+ it('Join and record stops by itself once its call has ended, like a recording started from the card', async () => {+ active = meeting({ app: null })+ w.joined('m1')+ reading = { micApps: [], events: [] }; await w.tick()+ reading = { micApps: [zoom], events: [] }; clock += 3_000; await w.tick()+ expect(active!.app).toBe('Zoom')+ reading = { micApps: [], events: [] }; clock += 5_000; await w.tick()+ expect(log).toEqual(['auto:m1'])+ })+ it('Join and record whose call never reached the mic is not stopped', async () => {+ active = meeting({ app: null })+ w.joined('m1')+ reading = { micApps: [], events: [] }+ await w.tick(); clock += 10 * MIN; await w.tick()+ expect(log.filter((l) => l.startsWith('auto'))).toEqual([])+ })+ it('New note and the agenda stay started by hand: asked, never stopped by itself', async () => {+ active = meeting({ app: null })+ reading = { micApps: [], events: [] }; await w.tick()+ reading = { micApps: [zoom], events: [] }; clock += 3_000; await w.tick()+ reading = { micApps: [], events: [] }; clock += 31_000; await w.tick()+ expect(log.filter((l) => l.startsWith('auto'))).toEqual([])+ })it('a recording started by hand with no call is never stopped', async () => {active = meeting({ app: null })reading = { micApps: [], events: [] }