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 (Teams on Mac): know my own "Myself video" tile, copy page ids from AXDOMIdentifier so the hangup-button reaches the reader, picture the window again once the call shows people (Teams opens the mic on its join screen), and drop Whisper's subtitle credits in any language (#138)
christianmat893c9bb84627
diff --git a/app/native/yogurt-mac/main.swift b/app/native/yogurt-mac/main.swiftindex 3acceff7..c5a3d0a6 100644--- a/app/native/yogurt-mac/main.swift+++ b/app/native/yogurt-mac/main.swift@@ -220,7 +220,7 @@ func browserTitle(_ id: String) -> String? {* one first. Yogurt reads the tree (src/main/callNames/parse.ts). Chromium and Electron build a page's tree only when* an assistive app asks, so they are asked the way screen readers do (AXManualAccessibility): see askTree.*/-let axKeys = [kAXRoleAttribute, kAXSubroleAttribute, kAXDescriptionAttribute, kAXTitleAttribute, kAXValueAttribute, kAXIdentifierAttribute, "AXDOMClassList", kAXChildrenAttribute, kAXSizeAttribute] as [String]+let axKeys = [kAXRoleAttribute, kAXSubroleAttribute, kAXDescriptionAttribute, kAXTitleAttribute, kAXValueAttribute, kAXIdentifierAttribute, "AXDOMClassList", kAXChildrenAttribute, kAXSizeAttribute, "AXDOMIdentifier"] as [String]let chromium: Set<String> = ["com.google.Chrome", "company.thebrowser.Browser", "com.ardia.browser", "company.thebrowser.dia", "com.brave.Browser", "com.microsoft.edgemac", "com.microsoft.teams", "com.microsoft.teams2"]var askedTree = Set<pid_t>()@@ -280,7 +280,8 @@ func axCopy(_ e: AXUIElement, depth: Int, maxDepth: Int, budget: inout Int, zoomif let x = axText(at(3)) { n["t"] = x }// what someone types is never copiedif role != "AXTextField" && role != "AXTextArea", let x = axText(at(4)) { n["v"] = x }- if let x = axText(at(5)) { n["i"] = x }+ // a page element's id ("hangup-button") is its DOM id; Chromium may not give it as AXIdentifier (#138)+ if let x = axText(at(5)) ?? axText(at(9)) { n["i"] = x }if let c = at(6) as? [String], !c.isEmpty { n["c"] = Array(c.prefix(20)) }if role == "AXTabGroup", let size = at(8), CFGetTypeID(size) == AXValueGetTypeID() {var sz = CGSize.zerodiff --git a/app/src/main/asr/hallucination.ts b/app/src/main/asr/hallucination.tsindex 45f50083..720dc02c 100644--- a/app/src/main/asr/hallucination.ts+++ b/app/src/main/asr/hallucination.ts@@ -38,6 +38,25 @@ const GUESSES = new Set([/** One of whisper's stock lines for silence. Only dropped where the audio was not clearly speech: people do say thank you. */export const isSilenceGuess = (text: string): boolean => GUESSES.has(tokens(text).join(' '))+/**+ * The credit line at the end of a subtitled video, which whisper writes over quiet audio with a different name each time+ * ("Редактор субтитров А.Семкин Корректор А.Егорова", #138). Never something said in a meeting, so it goes whatever the+ * audio was: the line must start with the credit and stay short, so a sentence about subtitles stays.+ */+const CREDITS = [+ /^редактор субтитров(?!\p{L})/iu, /^субтитры (?:сделал|создавал|подготовил|делал|выполнил|создал)\p{L}*/iu, /^[Кк]орректор\s+\p{Lu}\.\s?\p{Lu}/u,+ /^(?:subtitles|subtitled|captions|captioned|captioning) by(?!\p{L})/iu, /^untertitel(?:ung)?\s+(?:im auftrag|des|der|von)(?!\p{L})/iu,+ /^sous[- ]titr(?:age|es?)(?!\p{L})(?!\s+(?:sont|est|en|du|de la|pour)(?!\p{L}))/iu, /^sottotitoli (?:creati|a cura|di|e revisione)(?!\p{L})/iu,+ /^subtítulos (?:realizados|por|hechos|creados)(?!\p{L})/iu, /^legendas (?:pela|por|feitas)(?!\p{L})/iu, /^napisy (?:wykonane|stworzone|przygotowa)/iu,+ /^ondertiteling (?:door|van)(?!\p{L})/iu, /^字幕(?:由|提供|制作|製作)/u,+]+/** short: a credit is a name or two after its words (in characters, since Chinese has no spaces) */+const CREDIT_MAX_CHARS = 80+export const isSubtitleCredit = (text: string): boolean => {+ const t = text.normalize('NFKC').trim()+ return t.length <= CREDIT_MAX_CHARS && CREDITS.some((re) => re.test(t))+}+/*** Whisper sometimes reads names from its prompt back as a speaker label before real speech ("Eric and Sam Lee: so let* me just get"). The label goes when it is the prompt word for word; a colon after words of its own stays.diff --git a/app/src/main/asr/transcribe.ts b/app/src/main/asr/transcribe.tsindex 380c4e5e..de1d29e1 100644--- a/app/src/main/asr/transcribe.ts+++ b/app/src/main/asr/transcribe.ts@@ -3,7 +3,7 @@ import type { Track } from '../capture'import type { Chunk } from './chunker'import { languageName } from './appleSpeech'import { tokens } from './echo'-import { isPromptEcho, isSilenceGuess, withoutPromptLabel } from './hallucination'+import { isPromptEcho, isSilenceGuess, isSubtitleCredit, withoutPromptLabel } from './hallucination'/** What a chunk turns into: lines on meeting time. The meeting and the speaker are added where they are saved. */export type Line = Omit<Segment, 'id' | 'meetingId' | 'speaker'> & {@@ -119,7 +119,8 @@ export function createTranscriber(o: Opts): Transcribe {if (!text || NOISE.test(text)) continueif ((s.no_speech_prob ?? 0) > 0.6 && (s.avg_logprob ?? 0) < -1) continue// read back from the prompt, or a stock line over a faint sound: whisper had nothing to read- if (isPromptEcho(text, prompt) || (faint && isSilenceGuess(text))) continue+ // a subtitle credit is never said in a meeting, faint or not+ if (isPromptEcho(text, prompt) || isSubtitleCredit(text) || (faint && isSilenceGuess(text))) continue// the label's words (through the one carrying its colon) go with itconst kept = text === said ? s.words : s.words?.slice((s.words.findIndex((w) => w.word.includes(':')) + 1) || 0)const words = kept?.map((w) => ({ text: w.word, startMs: Math.round(c.startMs + w.start * 1000), endMs: Math.round(c.startMs + w.end * 1000) }))diff --git a/app/src/main/callNames/index.ts b/app/src/main/callNames/index.tsindex 82042091..2dec4464 100644--- a/app/src/main/callNames/index.ts+++ b/app/src/main/callNames/index.ts@@ -65,7 +65,7 @@ const MAX_RESTARTS = 20const LOGGED_CHANGES = 30type Sample = Omit<CallSample, 'ms'> & { t: number }-type Session = { app: string | null; ids: string[]; pids?: number[]; heardAt: number; quietMs: number; restarts: number; samples: Sample[]; priorLines: Set<number>; watch?: { stop(): void }; everyApp: boolean; offset?: number; startedAt: number; pictured: boolean; missPictured?: boolean; errors: Set<string>; last: string; logged: number; /** a call window with people was read (Zoom, Teams) */ windowSeen?: CallKind; /** since when the readings say that window is gone, and the last one that said so */ goneSince?: number; goneAt?: number }+type Session = { app: string | null; ids: string[]; pids?: number[]; heardAt: number; quietMs: number; restarts: number; samples: Sample[]; priorLines: Set<number>; watch?: { stop(): void }; everyApp: boolean; offset?: number; startedAt: number; pictured: boolean; missPictured?: boolean; picturedPeople?: boolean; errors: Set<string>; last: string; logged: number; /** a call window with people was read (Zoom, Teams) */ windowSeen?: CallKind; /** since when the readings say that window is gone, and the last one that said so */ goneSince?: number; goneAt?: number }export function hookCallNames(p: {store: Pick<Store, 'meeting' | 'segments' | 'setSegmentSpeakers' | 'updateMeeting'>@@ -134,9 +134,14 @@ export function hookCallNames(p: {if (!s.errors.has(why)) { s.errors.add(why); log(`call names: ${why}`) }return}- // the first reading of each meeting goes to the log in short, so a real call shows what its app gives- if (!s.pictured) { s.pictured = true; log(`call names: reading ${l.app} (${kind}), its window in short:\n${summarize(l.windows)}`) }const { byMute, ...r } = readCall(kind, l.windows)+ // The first reading of each meeting goes to the log in short, so a real call shows what its app gives. Teams opens+ // the mic on its join screen, minutes before the call (#138), so the first reading with people in it goes there too.+ const people = r.participants.length > 0+ if (!s.pictured || (people && !s.picturedPeople)) {+ s.pictured = true; s.picturedPeople = people+ log(`call names: reading ${l.app} (${kind}), its window in short:\n${summarize(l.windows)}`)+ }// A stage can show fewer people than are in the call (a screen share, another layout: #83 went "0 of 13", "0 of 2").// The most seen in the last minute stands for the call, so me and one other is no call of two, and who is muted// names nobody while someone may be hidden.@@ -186,7 +191,7 @@ export function hookCallNames(p: {log(`call names: the call is in ${m.app}, reading only it`)if (!ids.length) return// the log says again what the call's own app shows, even when it reads as what the last app did (#83)- s.pictured = false; s.last = ''+ s.pictured = false; s.picturedPeople = false; s.last = ''begin(m.id, s)})@@ -232,7 +237,7 @@ export function hookCallNames(p: {if (s.watch && s.app && !s.pids && p.micPids?.(s.app).length) {log(`call names: ${s.app} is on the mic now, reading only its process`)s.watch.stop(); s.watch = undefined- s.samples = []; s.heardAt = now(); s.pictured = false+ s.samples = []; s.heardAt = now(); s.pictured = false; s.picturedPeople = falses.windowSeen = undefined; s.goneSince = undefined; s.goneAt = undefinedbegin(id, s)continuediff --git a/app/src/main/callNames/parse.ts b/app/src/main/callNames/parse.tsindex 0d358f34..eb865b8a 100644--- a/app/src/main/callNames/parse.ts+++ b/app/src/main/callNames/parse.ts@@ -302,13 +302,17 @@ const titleName = (title: string | undefined): string | null => {const TEAMS_MUTED = /^(?:muted|stummgeschaltet|mic(?:rophone)? (?:is )?off|mikrofon (?:ist )?aus)$/iconst TEAMS_UNMUTED = /^(?:unmuted|stummschaltung aufgehoben|nicht stummgeschaltet|mic(?:rophone)? (?:is )?on|mikrofon (?:ist )?(?:an|ein))$/i/** the last words of every tile: a tile with no label inside (English Teams on Windows, 0.3.69) is "Name, ..., <this>" */-const TEAMS_HINT = /^(?:context menu is available|kontextmenü ist verfügbar)$/i+const TEAMS_HINT = /^(?:context menu is available|has context menu|kontextmenü ist verfügbar)$/i+/** my own tile on a Mac starts with these words: "Myself video, Name, ..., Unmuted, Has context menu" (#138) */+const TEAMS_MYSELF = /^myself video,\s*/i/** my own tile's label adds a short word after the name: "Christa, Ich" */const OWN_LABEL = /^(.+?),\s*(\p{L}{1,5})$/u/** a video tile's person, or null when the menu item isn't one. muted: null when the tile says nothing either way */function teamsTile(n: AxNode, alone: boolean): { name: string; speaking: boolean; me: boolean; muted: boolean | null } | null {- const label = (n.t ?? n.d ?? '').normalize('NFKC').trim()+ const full = (n.t ?? n.d ?? '').normalize('NFKC').trim()+ const myself = TEAMS_MYSELF.test(full)+ const label = full.replace(TEAMS_MYSELF, '')const inner: string[] = [], heads: string[] = []walk(n, (x) => {if (x === n) return@@ -329,7 +333,7 @@ function teamsTile(n: AxNode, alone: boolean): { name: string; speaking: booleanconst name = cleanTeams(head)if (name.length < 2 || name.length > 60 || !/\p{L}/u.test(name) || /[+\d]/.test(name)) continueconst fields = rest.split(/\s*,\s*/).filter(Boolean)- return { name, speaking: fields.some((f) => TEAMS_SAYS.test(f)), me: head !== raw || TEAMS_ME.test(head), muted: fields.length ? fields.some((f) => TEAMS_MUTED.test(f)) : null }+ return { name, speaking: fields.some((f) => TEAMS_SAYS.test(f)), me: myself || head !== raw || TEAMS_ME.test(head), muted: fields.length ? fields.some((f) => TEAMS_MUTED.test(f)) : null }}// no label with the name inside (none, or "(You)" on my own tile, #83 18:30): the name is the first of the tile's words// when they end with Teams' context-menu hint. A label that starts the words but runs on is no name.@@ -338,7 +342,7 @@ function teamsTile(n: AxNode, alone: boolean): { name: string; speaking: booleanconst name = cleanTeams(fields[0])if (name.length < 2 || name.length > 60 || !/\p{L}/u.test(name) || /[+\d]/.test(name)) return nullconst rest = fields.slice(1)- const mine = TEAMS_ME.test(fields[0]) || heads.some((h) => SELF_LABEL.test(h))+ const mine = myself || TEAMS_ME.test(fields[0]) || heads.some((h) => SELF_LABEL.test(h))return { name, speaking: rest.some((f) => TEAMS_SAYS.test(f)), me: mine, muted: rest.some((f) => TEAMS_MUTED.test(f)) }}diff --git a/app/test/callNames.test.ts b/app/test/callNames.test.tsindex c903db97..1f4d2ed4 100644--- a/app/test/callNames.test.ts+++ b/app/test/callNames.test.ts@@ -395,6 +395,22 @@ describe('hookCallNames', () => {expect(s.logs.some((l) => l.startsWith('call names: no call window in com.microsoft.teams2 (the Mac shows 3 of its windows), its windows in short:'))).toBe(true)})+ it("pictures the window again once the call shows people, since Teams opens the mic on its join screen (#138)", () => {+ const s = setup({ app: 'Teams' })+ s.start()+ const join = { r: 'AXWindow', k: [{ r: 'AXButton', i: 'hangup-button', d: 'Leave' }, { r: 'AXHeading', t: 'Meeting join' }] }+ const call = { r: 'AXWindow', k: [{ r: 'AXButton', i: 'hangup-button', d: 'Leave' },+ { r: 'AXMenuItem', d: 'Dana Smith, Has control of production tools, Context menu is available', k: [{ r: 'AXStaticText', v: 'Dana Smith' }, { r: 'AXGroup', c: ['vdi-frame-occlusion'] }] }] }+ s.emit({ t: 1_000_000, app: 'com.microsoft.teams2', windows: [{ title: 'Meeting join | Microsoft Teams', tree: join }] })+ s.emit({ t: 1_000_500, app: 'com.microsoft.teams2', windows: [{ title: 'Meeting join | Microsoft Teams', tree: join }] })+ s.emit({ t: 1_001_000, app: 'com.microsoft.teams2', windows: [{ title: 'Weekly | Microsoft Teams', tree: call }] })+ s.emit({ t: 1_001_500, app: 'com.microsoft.teams2', windows: [{ title: 'Weekly | Microsoft Teams', tree: call }] })+ const pictures = s.logs.filter((l) => l.startsWith('call names: reading com.microsoft.teams2 (teams), its window in short'))+ expect(pictures).toHaveLength(2)+ expect(pictures[1]).toContain('AXMenuItem')+ expect(s.logs.join('\n')).not.toContain('Dana Smith')+ })+it('a meeting in an app it can\'t read starts no watch', async () => {const s = setup({ app: 'FaceTime' })s.start()diff --git a/app/test/callParse.test.ts b/app/test/callParse.test.tsindex 7d48f996..3cf35343 100644--- a/app/test/callParse.test.ts+++ b/app/test/callParse.test.ts@@ -1,5 +1,6 @@import { describe, expect, it } from 'vitest'import { readCall, summarize, zoomLinuxTile, zoomTile, type AxNode, type AxWindow } from '../src/main/callNames/parse'+import { nameFor } from '../src/main/callNames/attribute'const node = (r: string, o: Partial<AxNode> = {}, ...k: AxNode[]): AxNode => ({ r, ...o, ...(k.length ? { k } : {}) })const win = (tree: AxNode, title?: string): AxWindow => ({ title, tree })@@ -427,6 +428,47 @@ describe("Teams' talking mark: the tile's last child has vdi-frame-occlusion (#8})})+// ---- Teams' talking mark on a Mac (#138, from a reporter's 3-person call in new Teams on macOS): the same tiles as on+// Windows, as AXMenuItems described "Name, ..., Context menu is available", the classes from AXDOMClassList, and while+// someone talks an empty AXGroup with vdi-frame-occlusion as the tile's last child. My own tile reads "Myself video,+// Name, ..., Unmuted, Has context menu". A small "Window" dialog (window sharing) comes first. Names made up.+const macTile = (name: string, talking: boolean): AxNode => node('AXMenuItem', { d: `${name}, ${PRODUCTION}, Context menu is available`, c: ['fui-Flex', '___s8lnzv0'] },+ node('AXGroup', { c: ['fui-Primitive', 'bkg_ZmZkYTdk'] }), node('AXGroup', { c: ['fui-Primitive', '___19sw0rl'] }), node('AXGroup', { c: ['fui-Primitive', '___jl63on0'] }),+ node('AXGroup', { c: ['fui-Flex', 'vdi-occlusion', '___1d0k7eo'] }), node('AXGroup', { c: ['fui-Flex', '___ylrf500'] }),+ node('AXStaticText', { v: name }),+ ...(talking ? [node('AXGroup', { c: ['fui-Flex', 'vdi-frame-occlusion', '___1vvhwjq'] })] : []))+const macOwnTile = (name: string, talking = false): AxNode => node('AXMenuItem', { d: `Myself video, ${name}, ${PRODUCTION}, Unmuted, Has context menu` },+ node('AXGroup', { c: ['fui-Primitive', '___19sw0rl'] }), node('AXStaticText', { v: name }),+ ...(talking ? [node('AXGroup', { c: ['fui-Flex', 'vdi-frame-occlusion', '___1vvhwjq'] })] : []))+const macSharing = win(node('AXWindow', { s: 'AXDialog', t: 'Window' }, node('AXButton', { i: 'WindowSharingSessionButton' })), 'Window')+const macStage = (tiles: AxNode[]) => win(node('AXWindow', { t: 'Weekly review | Microsoft Teams' },+ node('AXGroup', { c: ['BrowserRootView'] }, node('AXWebArea', { t: 'Weekly review | Microsoft Teams' },+ node('AXToolbar', {}, node('AXButton', { i: 'roster-button', d: 'People' }), node('AXButton', { i: 'hangup-button', d: 'Leave' })),+ node('AXGroup', {}, ...tiles)))), 'Weekly review | Microsoft Teams')++describe("Teams' talking mark on a Mac (#138)", () => {+ it('reads the empty frame group from AXDOMClassList as talking, and knows my own "Myself video" tile', () => {+ const r = readCall('teams', [macSharing, macStage([macOwnTile('Alex Morgan'), macTile('Dana Smith', true), macTile('Ann Lee', false)])])+ expect(r).toEqual({ speaking: ['Dana Smith'], participants: ['Alex Morgan', 'Dana Smith', 'Ann Lee'], me: 'Alex Morgan' })+ })+ it('the window-sharing dialog listed first gives nobody and never hides the call window', () => {+ expect(readCall('teams', [macSharing])).toEqual({ speaking: [], participants: [], me: null })+ expect(readCall('teams', [macSharing, macStage([macTile('Ann Lee', true)])]).speaking).toEqual(['Ann Lee'])+ })+ it('with several tiles marked at once (background noise), the line goes to nobody', () => {+ const samples = [0, 500, 1000, 1500].map((ms) => ({ ms, ...readCall('teams', [macStage([macOwnTile('Alex Morgan'), macTile('Dana Smith', true), macTile('Ann Lee', true)])]) }))+ expect(nameFor({ startMs: 0, endMs: 2000 }, samples)).toBeNull()+ })+ it('my own tile lit while I talk names nobody on the other side', () => {+ const samples = [0, 500, 1000, 1500].map((ms) => ({ ms, ...readCall('teams', [macStage([macOwnTile('Alex Morgan', true), macTile('Dana Smith', false), macTile('Ann Lee', false)])]) }))+ expect(nameFor({ startMs: 0, endMs: 2000 }, samples)).toBeNull()+ })+ it('one other person lit names their line', () => {+ const samples = [0, 500, 1000, 1500].map((ms) => ({ ms, ...readCall('teams', [macStage([macOwnTile('Alex Morgan'), macTile('Dana Smith', ms < 1500), macTile('Ann Lee', false)])]) }))+ expect(nameFor({ startMs: 0, endMs: 2000 }, samples)).toBe('Dana Smith')+ })+})+describe('summarize: a short picture of the tree for the log', () => {it("counts roles and shows ids, classes and the app's own words, never a name or anything said", () => {const captions = node('AXGroup', { i: 'captions' }, node('AXStaticText', { v: 'we can sign the renewal with Acme on Friday' }))diff --git a/app/test/hallucination.test.ts b/app/test/hallucination.test.tsindex 95082bf5..5247ed80 100644--- a/app/test/hallucination.test.ts+++ b/app/test/hallucination.test.ts@@ -1,5 +1,5 @@import { describe, expect, it } from 'vitest'-import { isPromptEcho, isSilenceGuess, withoutPromptLabel } from '../src/main/asr/hallucination'+import { isPromptEcho, isSilenceGuess, isSubtitleCredit, withoutPromptLabel } from '../src/main/asr/hallucination'describe('prompt echo', () => {const prompt = 'Northwind sync. With Sam Lee of Northwind and Joe Park of Acme.'@@ -64,3 +64,24 @@ describe('the prompt read back as a speaker label', () => {expect(withoutPromptLabel('Eric: hi', '')).toBe('Eric: hi')})})++describe("whisper's subtitle credits (#138: Russian ones on a quiet track)", () => {+ it('are credit lines in any of the usual languages, whoever they name', () => {+ for (const t of [+ 'Редактор субтитров А.Семкин Корректор А.Егорова', 'Редактор субтитров М.Лосева Корректор А.Егорова', 'Корректор А.Кулакова',+ 'Субтитры сделал DimaTorzok', 'Субтитры создавал DimaTorzok', 'Субтитры подготовил И.Петров',+ 'Untertitel im Auftrag des ZDF für funk, 2017', 'Untertitelung des ZDF, 2020', 'Untertitel von Stephanie Geiges',+ "Sous-titrage ST' 501", 'Sous-titres réalisés par Jean Dupont', 'Subtitles by Jane Doe', 'Captions by Rev.com',+ 'Sottotitoli creati dalla comunità Amara.org', 'Subtítulos realizados por la comunidad de Amara.org', 'Legendas pela comunidade Amara.org',+ 'Napisy wykonane przez Jana Kowalskiego', 'Ondertiteling door Jan de Vries', '字幕由Amara.org社区提供',+ ]) expect(isSubtitleCredit(t), t).toBe(true)+ })+ it('are not real sentences that mention subtitles or an editor', () => {+ for (const t of [+ 'Нам нужен корректор для этого текста к пятнице.', 'Редактор сказал, что всё готово.', 'Субтитры к видео будут завтра?',+ 'Who made the subtitles for the launch video?', 'The subtitles by default are off, can you turn them on?',+ 'Die Untertitel fehlen noch im Export.', 'Les sous-titres sont en retard, on les livre lundi.',+ 'Subtitles by Jane Doe were great, but the client wants a second pass on the Spanish version before Friday please',+ ]) expect(isSubtitleCredit(t), t).toBe(false)+ })+})diff --git a/app/test/macTeamsTree.test.ts b/app/test/macTeamsTree.test.tsindex 1cfd317b..4d3179a1 100644--- a/app/test/macTeamsTree.test.ts+++ b/app/test/macTeamsTree.test.ts@@ -74,4 +74,10 @@ describe('call-watch on the Teams desktop app (#111)', () => {const look = swift.slice(swift.indexOf('func hasCallControl'), swift.indexOf('func isMeetTitle'))expect(look).toContain('page shows only a popup')})+ it("copies a page element's DOM id when it has no AXIdentifier, so Teams' hangup-button reaches the reader on a Mac (#138)", () => {+ expect(swift).toMatch(/let axKeys = \[[^\]]*"AXDOMIdentifier"/)+ const copy = swift.slice(swift.indexOf('func axCopy'), swift.indexOf('let callControls'))+ expect(copy).toMatch(/n\["i"\] = x/)+ expect(copy).toContain('at(9)')+ })})