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
Call names (Meet): page words (reCAPTCHA, Upgrade) and messages in the chat panel are never taken for people; a meeting named after a chat still reads its tiles
christianmat3baa1179576a
diff --git a/app/src/main/callNames/parse.ts b/app/src/main/callNames/parse.tsindex 62a3ea3c..5363f9dc 100644--- a/app/src/main/callNames/parse.ts+++ b/app/src/main/callNames/parse.ts@@ -160,7 +160,11 @@ const TILE_UP = 7const NOT_A_NAME = /^\d{1,2}[:.]\d{2}(\s?[AP]M)?$|^[a-z]{3}-[a-z]{4}-[a-z]{3}$|says in chat|^(AM|PM)$|^\d+$/i/** Meet's own words that stand alone like a name */-const MEET_WORDS = new Set(['meet', 'reframe', 'captions', 'chat', 'people', 'activities', 'host controls', 'present', 'raise hand', 'reactions'])+const MEET_WORDS = new Set(['meet', 'reframe', 'captions', 'chat', 'people', 'activities', 'host controls', 'present', 'raise hand', 'reactions', 'recaptcha', 'upgrade'])+/** the chat panel: its messages stand alone like names (a one-word message, "lightsage", was taken for a person) */+const MEET_CHAT = /\b(chat|messages?)\b/i+/** the window and the page carry the meeting's name ("Weekly chat"): only what's inside them is checked for the chat panel */+const MEET_PAGE = new Set(['AXWindow', 'AXWebArea', 'frame', 'document web', 'window'])/** lowercase words that sit inside real names: Ana María de la Cruz, Ludwig van Beethoven */const PARTICLES = new Set(['de', 'del', 'della', 'der', 'den', 'di', 'da', 'das', 'do', 'dos', 'du', 'la', 'le', 'van', 'von', 'ter', 'ten', 'y', 'e', 'bin', 'binti', 'al', 'el', 'ibn', 'zu'])@@ -194,7 +198,7 @@ function readMeet(windows: AxWindow[], o: { talkingClasses?: string[] }): CallReif (w.title && !/\bMeet\b/.test(w.title)) continueconst skip = new Set((w.title ?? '').split(/\s+[-–—]\s+/).map(low))walk(w.tree, (n, up) => {- if (!STATIC_TEXT.has(n.r) || up.length < TILE_UP || up.some(isLive)) return+ if (!STATIC_TEXT.has(n.r) || up.length < TILE_UP || up.some(isLive) || up.some((a) => !MEET_PAGE.has(a.r) && MEET_CHAT.test(a.d ?? a.t ?? ''))) returnconst text = n.v ?? n.tif (!text) returnconst name = meetName(text)diff --git a/app/test/callParse.test.ts b/app/test/callParse.test.tsindex 003ea4dc..50f9519b 100644--- a/app/test/callParse.test.ts+++ b/app/test/callParse.test.ts@@ -102,6 +102,20 @@ const meetWindow = (tiles: AxNode[], title = 'Meet - abc-defg-hij') => win(node(node('AXGroup', {}, node('AXGroup', {}, node('AXGroup', {}, node('AXGroup', {}, node('AXGroup', {}, node('AXGroup', {}, node('AXGroup', {}, node('AXStaticText', { v: 'abc-defg-hij' }), node('AXStaticText', { v: '10:42' }))))))))))), title)describe('Google Meet', () => {+ // Eric, after a two-person Meet: reCAPTCHA, a chat message ("lightsage") and an Upgrade link were added as people+ it('page words (reCAPTCHA, Upgrade) and anything in the chat panel are never people', () => {+ const chatMessage = (text: string) => {+ let n = node('AXStaticText', { v: text })+ for (let i = 0; i < 7; i++) n = node('AXGroup', {}, n)+ return node('AXGroup', { d: 'In-call messages' }, node('AXList', { d: 'Chat messages' }, n))+ }+ const r = readCall('meet', [meetWindow([meetTile('You'), meetTile('May Wang', ['v5h6Xc']), meetTile('reCAPTCHA'), meetTile('Upgrade'), chatMessage('lightsage')])])+ expect(r).toEqual({ speaking: ['May Wang'], participants: ['You', 'May Wang'], me: 'You' })+ })+ it('a meeting named after a chat still reads its tiles', () => {+ expect(readCall('meet', [meetWindow([meetTile('Dana Smith', ['v5h6Xc'])], 'Meet - Weekly chat')]).participants).toEqual(['Dana Smith'])+ })+it('reads each tile once, and the tile with the talking class', () => {const r = readCall('meet', [meetWindow([meetTile('You'), meetTile('Dana Smith', ['v5h6Xc']), meetTile('Ann Lee')])])expect(r).toEqual({ speaking: ['Dana Smith'], participants: ['You', 'Dana Smith', 'Ann Lee'], me: 'You' })