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 in Chrome on Mac): also ask the browser with AXEnhancedUserInterface, as screen readers do, since Chrome ignored AXManualAccessibility and showed only its tabs and toolbar (0 names); turned off again when the watch ends
christianmat51c9c30dac4f
diff --git a/app/native/yogurt-mac/main.swift b/app/native/yogurt-mac/main.swiftindex 69f8f044..f01deb3d 100644--- a/app/native/yogurt-mac/main.swift+++ b/app/native/yogurt-mac/main.swift@@ -226,9 +226,23 @@ func askTree(_ app: AXUIElement, _ r: NSRunningApplication, force: Bool = false)guard let id = r.bundleIdentifier, chromium.contains(id), !askedTree.contains(r.processIdentifier) else { return }guard force || id.hasPrefix("com.microsoft.teams") else { return }AXUIElementSetAttributeValue(app, "AXManualAccessibility" as CFString, kCFBooleanTrue)+ // Chrome itself (not Electron) can ignore AXManualAccessibility and show only its tabs and toolbar, never the Meet+ // page: a Meet call read 0 names that way. Screen readers ask with AXEnhancedUserInterface, which Chrome honours. It+ // can slow window animations in that app, so it is turned back off when the watch ends (resetTrees).+ if !id.hasPrefix("com.microsoft.teams") {+ AXUIElementSetAttributeValue(app, "AXEnhancedUserInterface" as CFString, kCFBooleanTrue)+ enhanced.append(r.processIdentifier)+ }askedTree.insert(r.processIdentifier)}+/// the browsers asked with AXEnhancedUserInterface, to turn it back off when the watch ends+var enhanced: [pid_t] = []+func resetTrees() {+ for pid in enhanced { AXUIElementSetAttributeValue(AXUIElementCreateApplication(pid), "AXEnhancedUserInterface" as CFString, kCFBooleanFalse) }+ enhanced = []+}+func axAttr(_ e: AXUIElement, _ name: String) -> AnyObject? {var v: AnyObject?return AXUIElementCopyAttributeValue(e, name as CFString, &v) == .success ? v : nil@@ -347,7 +361,7 @@ func callWindows(_ app: AXUIElement, _ id: String) -> [AXUIElement] {func watchCalls(every: Int, ids: [String]) {// Yogurt closes stdin to stop the watch (and a crashed Yogurt closes it too)- DispatchQueue.global().async { _ = FileHandle.standardInput.readDataToEndOfFile(); exit(0) }+ DispatchQueue.global().async { _ = FileHandle.standardInput.readDataToEndOfFile(); DispatchQueue.main.sync { resetTrees() }; exit(0) }let line = { (v: [String: Any]) inguard let d = try? JSONSerialization.data(withJSONObject: v) else { return }FileHandle.standardOutput.write(d); FileHandle.standardOutput.write("\n".data(using: .utf8)!)diff --git a/app/test/macTeamsTree.test.ts b/app/test/macTeamsTree.test.tsindex 75b1b192..de1a4ecf 100644--- a/app/test/macTeamsTree.test.ts+++ b/app/test/macTeamsTree.test.ts@@ -25,4 +25,10 @@ describe('call-watch on the Teams desktop app (#111)', () => {it('says in the log why no window was a call', () => {expect(swift).toContain('"no-call-window (\\(lastControlLook))"')})+ it("asks Chrome for the Meet page the way screen readers do, and turns that off when the watch ends", () => {+ const ask = swift.slice(swift.indexOf('func askTree'), swift.indexOf('func resetTrees'))+ expect(ask).toContain('"AXEnhancedUserInterface" as CFString, kCFBooleanTrue')+ expect(swift).toMatch(/readDataToEndOfFile\(\); DispatchQueue\.main\.sync \{ resetTrees\(\) \}; exit\(0\)/)+ })})+