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
Webex: names from current Webex builds' participant rows, and no guessed name when the speaker isn't on the list (#41)
Scorpionsessb3ebb7c4a7b8
diff --git a/app/native/yogurt-mac/main.swift b/app/native/yogurt-mac/main.swiftindex 14b42c5c..82e87146 100644--- a/app/native/yogurt-mac/main.swift+++ b/app/native/yogurt-mac/main.swift@@ -278,6 +278,14 @@ func callWindows(_ app: AXUIElement, _ id: String) -> [AXUIElement] {}}if id.hasPrefix("com.microsoft.teams") { return all }+ // Webex's meeting surfaces have stable accessibility identifiers; exclude its home window so it cannot hide another+ // call app when a recording was started by hand.+ if id == "Cisco-Systems.Spark" || id == "com.cisco.webexmeetingsapp" {+ return all.filter { w in+ let ident = axText(axAttr(w, kAXIdentifierAttribute)) ?? ""+ return ident == "FloatingMediaWindow" || ident == "PopOutWindow"+ }+ }// a browser: only windows whose front tab is a Meet callreturn all.filter { w in (axText(axAttr(w, kAXTitleAttribute)) ?? "").range(of: #"\bMeet\b"#, options: .regularExpression) != nil }}diff --git a/app/src/main/callNames/attribute.ts b/app/src/main/callNames/attribute.tsindex 58df581a..85f55eac 100644--- a/app/src/main/callNames/attribute.ts+++ b/app/src/main/callNames/attribute.ts@@ -35,8 +35,12 @@ const isMe = (name: string, s: CallSample, o: Opts) => {function whoAt(s: CallSample, o: Opts): string | null {if (s.ok === false) return nullconst people = [...new Map(s.participants.map((p) => [norm(p), p])).values()]+ const roster = new Set(people.map(norm))+ // A floating speaker tile can name someone before (or after) the roster refreshes. In that case this is not+ // evidence of a two-person call, so do not assign their speech to the one other roster entry.+ const speakerOutsideRoster = s.speaking.some((p) => !isMe(p, s, o) && !roster.has(norm(p)))// one other person in the call: the call's sound can only be them, whoever the app marks- if (people.length === 2) {+ if (people.length === 2 && !speakerOutsideRoster) {const mine = people.filter((p) => isMe(p, s, o))if (mine.length === 1) return people.find((p) => !isMe(p, s, o))!}diff --git a/app/src/main/callNames/parse.ts b/app/src/main/callNames/parse.tsindex b47aef18..4c1252fb 100644--- a/app/src/main/callNames/parse.ts+++ b/app/src/main/callNames/parse.ts@@ -253,10 +253,19 @@ function readTeams(windows: AxWindow[]): CallReading {}// ---- Webex desktop app -----// The meeting's Participants outline contains AXCell rows backed by GenericParticipantListCellView. Each person row-// describes its name, organization, and (when present) "speaking" / "me". With that panel closed, the floating video-// tile still marks its person as speaking in a fixed English shape; it is safe to use only that explicit mark.+// The meeting's Participants outline contains participant rows. Older Webex builds expose AXCell rows backed by+// GenericParticipantListCellView; current builds expose AXRow descriptions. Each describes a name and, when present,+// "speaking" / "me". With that panel closed, the floating video tile still marks its person as speaking in a fixed+// English shape; it is safe to use only that explicit mark.const WEBEX_SPEAKING_TILE = /^(.+?),\s*,\s*,\s*speaking,\s*Video (?:on|off),?$/i+const WEBEX_ROSTER = /^participants(?:\s|$)/i+const WEBEX_PERSON_MARK = /^(?:host|presenter|me|muted|unmuted|speaking|using phone|unverified)$/i+const webexRowName = (description: string): string | undefined => {+ const fields = description.normalize('NFKC').split(/\s*[,،]\s*/).filter(Boolean)+ const status = fields.findIndex((field, i) => i > 0 && WEBEX_PERSON_MARK.test(field))+ const name = status > 0 ? fields.slice(0, status).join(', ') : undefined+ return name && !WEBEX_PERSON_MARK.test(name) ? name : undefined+}function readWebex(windows: AxWindow[]): CallReading {const speaking: string[] = [], participants: string[] = []let me: string | null = null@@ -266,11 +275,12 @@ function readWebex(windows: AxWindow[]): CallReading {const tile = WEBEX_SPEAKING_TILE.exec(n.t.normalize('NFKC').trim())if (tile && tile[1].trim().length >= 2 && tile[1].trim().length <= 60) speaking.push(tile[1].trim())}- if (n.r !== 'AXCell' || !up.some((a) => a.r === 'AXOutline' && /^participants(?:\s|$)/i.test((a.d ?? a.t ?? '').trim()))) return- let personRow = false, name: string | undefined+ if (!up.some((a) => a.r === 'AXOutline' && WEBEX_ROSTER.test((a.d ?? a.t ?? '').trim()))) return+ const rowName = n.r === 'AXRow' && n.d ? webexRowName(n.d) : undefined+ let personRow = !!rowName, name = rowNameconst labels: string[] = []walk(n, (x) => {- if (x.i === 'GenericParticipantListCellView') personRow = true+ if (n.r === 'AXCell' && x.i === 'GenericParticipantListCellView') personRow = truelabels.push(...texts(x))if (!name && STATIC_TEXT.has(x.r)) name = x.v ?? x.t})diff --git a/app/test/callAttribute.test.ts b/app/test/callAttribute.test.tsindex 51822260..c678fa71 100644--- a/app/test/callAttribute.test.ts+++ b/app/test/callAttribute.test.ts@@ -55,6 +55,16 @@ describe('nameFor: who the other side was, from what the call app showed', () =>expect(nameFor({ startMs: 1000, endMs: 5000 }, run(0, 10_000, { ...pair, speaking: ['Alex Morgan'] }))).toBe('Dana Smith')})+ it('does not use the two-person fallback when a stale roster conflicts with speaker marks', () => {+ const pair = { participants: ['Alex Morgan', 'Dana Smith'], me: 'Alex Morgan' }+ const label = (speaking: string[]) => nameFor({ startMs: 1000, endMs: 5000 }, run(0, 10_000, { ...pair, speaking }))+ expect(label(['Dana Smith'])).toBe('Dana Smith')+ expect(label(['Ann Lee'])).toBe('Ann Lee')+ expect(label(['Alex Morgan', 'Ann Lee'])).toBe('Ann Lee')+ expect(label(['Dana Smith', 'Ann Lee'])).toBeNull()+ expect(label(['Ann Lee', 'Bo Park'])).toBeNull()+ })+it('a call of two where nobody is known to be the person using Yogurt names nobody', () => {expect(nameFor({ startMs: 1000, endMs: 5000 }, run(0, 10_000, { participants: ['Ann Lee', 'Dana Smith'] }))).toBeNull()// the name in Settings tells them apartdiff --git a/app/test/callNames.test.ts b/app/test/callNames.test.tsindex c2e79a3f..01418d4e 100644--- a/app/test/callNames.test.ts+++ b/app/test/callNames.test.ts@@ -32,6 +32,12 @@ const webexWindows = (): WatchLine['windows'] => [{ title: 'Webex meeting', treeconst webexFloatingWindows = (): WatchLine['windows'] => [{ title: 'Webex multitasking floating window', tree: { r: 'AXWindow', k: [{r: 'AXGroup', t: 'Riley Okafor, , , speaking, Video off, ', k: [{ r: 'AXStaticText', v: 'Riley Okafor' }],}] } }]+const webexCurrentWindows = (): WatchLine['windows'] => [{ title: 'Webex meeting', tree: { r: 'AXWindow', k: [{ r: 'AXOutline', d: 'Participants', k: [+ { r: 'AXRow', d: 'Participants group, 3 participant(s)' },+ { r: 'AXRow', d: '[email protected], Host, presenter, me, Muted,' },+ { r: 'AXRow', d: 'Jane Doe, using phone, Unverified, speaking,' },+ { r: 'AXRow', d: 'Host, Muted,' },+] }] } }]const webexLine = (t: number): WatchLine => ({ t, app: 'Cisco-Systems.Spark', windows: webexWindows() })function setup(o: { app?: string | null; attendees?: Meeting['attendees'] } = {}) {@@ -79,7 +85,7 @@ describe('watchIds: only the call app the meeting is in', () => {})describe('Webex accessibility roster', () => {- it('reads roster names, the speaking mark, and me while ignoring group rows', () => {+ it('reads legacy AXCell roster names, the speaking mark, and me while ignoring group rows', () => {expect(readCall('webex', webexWindows()!)).toEqual({speaking: ['Riley Okafor'], participants: ['[email protected]', 'Riley Okafor'], me: '[email protected]',})@@ -88,6 +94,12 @@ describe('Webex accessibility roster', () => {it('reads the marked speaker from the floating video tile when the roster is closed', () => {expect(readCall('webex', webexFloatingWindows()!)).toEqual({ speaking: ['Riley Okafor'], participants: [], me: null })})++ it('reads AXRow roster descriptions from current Webex builds', () => {+ expect(readCall('webex', webexCurrentWindows()!)).toEqual({+ speaking: ['Jane Doe'], participants: ['[email protected]', 'Jane Doe'], me: '[email protected]',+ })+ })})describe('hookCallNames', () => {