知了 Cicada · 任何会议和直播的实时字幕、同声传译、AI 会议纪要,Mac、Windows、Linux、Android 免费开源。Live subtitles, interpreting and meeting notes for any call or stream, on Mac, Windows, Linux and Android.
Swift androidlinuxlive-captionsmacosmeeting-notesmenubar-appsimultaneous-interpretationspeech-recognitionsubtitlesswiftswiftuitranslationwindows
feat: when the room's microphone isn't allowed, the notes window, the subtitle bar and an orange dot on the menu bar icon say so, with one notification if the notes window is put away
wquguruf9ad4fa069f3
diff --git a/Resources/en.lproj/Localizable.strings b/Resources/en.lproj/Localizable.stringsindex a7e22fc..c8e436c 100644--- a/Resources/en.lproj/Localizable.strings+++ b/Resources/en.lproj/Localizable.strings@@ -1182,3 +1182,7 @@"在 Ling 开放平台点“创建令牌”,复制以 sk- 开头的那串。" = "On the Ling platform, click “Create token” and copy the string that starts with sk-.";"打开 Ling 开放平台 ↗" = "Open the Ling platform ↗";"Ling 提示此令牌无效,请检查是否复制完整,或重新创建一个" = "Ling says this token is invalid. Check that you copied all of it, or create a new one";+"%@(需要处理)" = "%@ (needs attention)";+"听不到会议室 · 麦克风没允许" = "Can't hear the room · microphone not allowed";+"听不到会议室" = "Can't hear the room";+"麦克风没允许,现在只在记电脑声音。点按去设置" = "The microphone isn't allowed, so only the Mac's audio is being recorded. Click to open Settings";diff --git a/Resources/ja.lproj/Localizable.strings b/Resources/ja.lproj/Localizable.stringsindex 7707a06..02b74ab 100644--- a/Resources/ja.lproj/Localizable.strings+++ b/Resources/ja.lproj/Localizable.strings@@ -1182,3 +1182,7 @@"在 Ling 开放平台点“创建令牌”,复制以 sk- 开头的那串。" = "Ling のプラットフォームで「トークンを作成」をクリックし、sk- で始まる文字列をコピーします。";"打开 Ling 开放平台 ↗" = "Ling プラットフォームを開く ↗";"Ling 提示此令牌无效,请检查是否复制完整,或重新创建一个" = "Ling がこのトークンは無効だと通知しました。全体をコピーできているか確認するか、新しく作成してください";+"%@(需要处理)" = "%@(対応が必要)";+"听不到会议室 · 麦克风没允许" = "会議室が聞こえません · マイクが未許可";+"听不到会议室" = "会議室が聞こえません";+"麦克风没允许,现在只在记电脑声音。点按去设置" = "マイクが許可されていないため、Mac の音声だけを記録しています。クリックして設定を開く";diff --git a/Resources/ko.lproj/Localizable.strings b/Resources/ko.lproj/Localizable.stringsindex dc8875d..6b8a0cf 100644--- a/Resources/ko.lproj/Localizable.strings+++ b/Resources/ko.lproj/Localizable.strings@@ -1182,3 +1182,7 @@"在 Ling 开放平台点“创建令牌”,复制以 sk- 开头的那串。" = "Ling 개발자 플랫폼에서 “토큰 만들기”를 클릭하고 sk-로 시작하는 문자열을 복사하세요.";"打开 Ling 开放平台 ↗" = "Ling 개발자 플랫폼 열기 ↗";"Ling 提示此令牌无效,请检查是否复制完整,或重新创建一个" = "Ling에서 이 토큰이 유효하지 않다고 합니다. 전체를 복사했는지 확인하거나 새로 만드세요";+"%@(需要处理)" = "%@ (확인 필요)";+"听不到会议室 · 麦克风没允许" = "회의실을 들을 수 없음 · 마이크 미허용";+"听不到会议室" = "회의실을 들을 수 없음";+"麦克风没允许,现在只在记电脑声音。点按去设置" = "마이크가 허용되지 않아 Mac 소리만 기록하고 있습니다. 클릭하여 설정 열기";diff --git a/Sources/Cicada/AICheckView.swift b/Sources/Cicada/AICheckView.swiftindex 92f44ab..6acfebc 100644--- a/Sources/Cicada/AICheckView.swift+++ b/Sources/Cicada/AICheckView.swift@@ -152,13 +152,21 @@ struct AIServiceStrip: View {guard let f = c.failure else {return c.balanceLine(service: name).map { ($0, L("用完后纪要会停下")) }}+ if f.reason == .unreachable { return (L("连不上 \(name)"), stopped) }+ return Self.blocking(ling, textModel: model.settings.textModel).map { ($0, stopped) }+ }++ /// What stops the notes until you change something (not the network, not a busy service):+ /// also the menu bar's dot, beyond the panel.+ static func blocking(_ ling: LingClient, textModel: String) -> String? {+ guard ling.hasKey, let f = ling.aiCheck.failure else { return nil }+ let name = ling.serviceNameswitch f.reason {- case .unreachable: return (L("连不上 \(name)"), stopped)- case .invalidKey, .mgmtKey: return (L("\(name) 的 key 用不了"), stopped)- case .noCredit: return (L("\(name) 账户余额不足。"), stopped)- case .noModel: return (L("\(name) 上找不到 \(model.settings.textModel) 这个模型。"), stopped)- case .badAddress, .noJSON: return (L("AI 服务的设置要改一下"), stopped)- case .busy, .serverError: return nil+ case .invalidKey, .mgmtKey: return L("\(name) 的 key 用不了")+ case .noCredit: return L("\(name) 账户余额不足。")+ case .noModel: return L("\(name) 上找不到 \(textModel) 这个模型。")+ case .badAddress, .noJSON: return L("AI 服务的设置要改一下")+ case .unreachable, .busy, .serverError: return nil}}}diff --git a/Sources/Cicada/AppModel.swift b/Sources/Cicada/AppModel.swiftindex a35fd51..413749c 100644--- a/Sources/Cicada/AppModel.swift+++ b/Sources/Cicada/AppModel.swift@@ -87,6 +87,14 @@ final class AppModel: ObservableObject {private var callCheck: (at: Date, name: String?) = (.distantPast, nil)/// 电脑和会议室 with the microphone not allowed: the Mac's side goes on, the room's can't start.@Published var hybridMicDenied = false+ /// Debug (`micDeniedSim`): 电脑和会议室 acts as if the microphone were refused.+ private var fakeMicDenied = false+ /// Something only you can fix, said beyond the panel (shut while you meet): the menu bar's dot+ /// and its tooltip. The microphone also goes to the notes window, the subtitle bar and, once a+ /// meeting, a notification.+ @Published private(set) var problem: String?+ private var micDeniedSince: Date?+ private var micDeniedNotified = false/// HybridNote under 听哪里.@Published var hybridNote: String?private var headsetCheck: (at: Date, on: Bool) = (.distantPast, false)@@ -440,8 +448,7 @@ final class AppModel: ObservableObject {if roomAsk != roomPrompt { roomPrompt = roomAsk }updateOnlinePrompt()let both = listen.isRunning && settings.hearsBoth && !Recognition.legacy- let denied = both && [.denied, .restricted].contains(AVCaptureDevice.authorizationStatus(for: .audio))- if denied != hybridMicDenied { hybridMicDenied = denied }+ checkProblem()if both, Date().timeIntervalSince(headsetCheck.at) >= 2 {let def = AudioDevices.defaultInputlet t = def.map { AudioDevices.transport($0.id) }@@ -468,6 +475,7 @@ final class AppModel: ObservableObject {func refreshPermissions() {let mic = AVCaptureDevice.authorizationStatus(for: .audio)if mic != micStatus { micStatus = mic }+ checkProblem()let devices = AudioDevices.outputs()if devices.map(\.uid) != outputs.map(\.uid) { outputs = devices }if listen.isRunning && !settings.listensToRoom && !systemAudioOK { systemAudioOK = true }@@ -557,6 +565,42 @@ final class AppModel: ObservableObject {func openMicrophoneSettings() { openSettingsPane("Privacy_Microphone") }+ /// On each change and every second: the menu bar's dot, the subtitle bar's notice and the+ /// notification. Never a dialog: it would take the focus from the meeting app, and show in a+ /// shared screen.+ func checkProblem() {+ let both = listen.isRunning && settings.hearsBoth && !Recognition.legacy+ let denied = both && (fakeMicDenied || [.denied, .restricted].contains(AVCaptureDevice.authorizationStatus(for: .audio)))+ if denied != hybridMicDenied {+ hybridMicDenied = denied+ micDeniedSince = denied ? Date() : nil+ overlay.setAlert(denied ? L("听不到会议室 · 麦克风没允许") : nil)+ }+ let p = denied ? L("听会议室要先允许麦克风") : AIServiceStrip.blocking(ling, textModel: settings.textModel)+ if p != problem { problem = p }+ // With the notes window up its banner says so; put away, a notification after 10 s+ // (long enough for a quick fix in the panel), once a meeting.+ if denied, !micDeniedNotified, !notesShown, let since = micDeniedSince, Date().timeIntervalSince(since) >= 10 {+ micDeniedNotified = true+ notifyMicDenied()+ }+ }++ private func notifyMicDenied() {+ let title = L("听不到会议室"), body = L("麦克风没允许,现在只在记电脑声音。点按去设置")+ UNUserNotificationCenter.current().requestAuthorization(options: [.alert]) { granted, _ in+ guard granted else { debugLog("problem: notifications not allowed"); return }+ let content = UNMutableNotificationContent()+ content.title = title+ content.body = body+ content.userInfo = ["problem": "mic"]+ let request = UNNotificationRequest(identifier: "problem-mic", content: content, trigger: nil)+ UNUserNotificationCenter.current().add(request) { error in+ debugLog(error.map { "problem: notification not shown: \($0)" } ?? "problem: notified mic denied")+ }+ }+ }+/// Quits and opens Cicada again: a permission turned on after it was refused takes only then.func relaunch() {// Quitting closes the guide, which would count as finishing it: it carries on after the reopen.@@ -630,6 +674,7 @@ final class AppModel: ObservableObject {roomPromptDismissed = falseonlinePromptDismissed = falsefakeGoneMics = []+ micDeniedNotified = falsemeetingSubtitles = nilautoEnded = falseendWatch = MeetingEndWatch(config: endConfig, start: Date())@@ -1704,6 +1749,11 @@ final class AppModel: ObservableObject {let kv = arg.split(separator: "=", maxSplits: 1).map(String.init)if kv.count == 2 { previewVoice(kv[1], language: kv[0]) }case "notesNow": notes.updateNow()+ case "micDeniedSim":+ // micDeniedSim:on|off: 电脑和会议室 as if the microphone were refused (the dot, banner, notification).+ fakeMicDenied = arg != "off"+ checkProblem()+ debugLog("problem: mic denied sim \(fakeMicDenied) denied=\(hybridMicDenied) problem=\(problem ?? "-") notesShown=\(notesShown)")case "endSim":// endSim:<app name>[,<app name>] pretends those meeting apps are in a call; endSim: none; endSim:off real.fakeCalls = arg == "off" ? nil : Dictionary(arg.split(separator: ",").map { ("sim.\($0)", String($0)) }) { a, _ in a }@@ -1979,9 +2029,11 @@ final class AppDelegate: NSObject, NSApplicationDelegate, NSWindowDelegate, UNUsmodel.showPanel = { [weak self] in self?.togglePopover() }model.openPanel = { [weak self] in if self?.popover.isShown == false { self?.togglePopover() } }model.openOnboarding = { [weak self] in self?.showOnboarding() }- runningObserver = model.$running.combineLatest(model.updates.$update).sink { [weak self] live, update in- self?.statusItem.button?.image = BrandImage.menuBar(live: live, badge: update != nil)- self?.statusItem.button?.toolTip = update.map { L("有新版本 \($0.version)") }+ runningObserver = model.$running.combineLatest(model.updates.$update, model.$problem).sink { [weak self] live, update, problem in+ let badge: BrandImage.Badge = problem != nil ? .problem : update != nil ? .update : .none+ self?.statusItem.button?.image = BrandImage.menuBar(live: live, badge: badge)+ self?.statusItem.button?.toolTip = problem ?? update.map { L("有新版本 \($0.version)") }+ debugLog("menu bar: badge=\(badge) tooltip=\(problem ?? "-")")}let poll = Timer(timeInterval: 1.0, repeats: true) { [weak self] _ inMainActor.assumeIsolated { self?.model.refreshPermissions() }@@ -2017,7 +2069,13 @@ final class AppDelegate: NSObject, NSApplicationDelegate, NSWindowDelegate, UNUslet info = response.notification.request.content.userInfolet id = info["session"] as? Stringlet update = info["update"] as? String+ let problem = info["problem"] as? Stringawait MainActor.run {+ // "听不到会议室": straight to System Settings, without bringing Cicada forward.+ if problem == "mic" {+ model.openMicrophoneSettings()+ return+ }// "有新版本": the panel shows the download, and install asks first if a meeting is on.if update != nil {if !popover.isShown { togglePopover() }diff --git a/Sources/Cicada/NotesWindow.swift b/Sources/Cicada/NotesWindow.swiftindex d5c1c41..749267e 100644--- a/Sources/Cicada/NotesWindow.swift+++ b/Sources/Cicada/NotesWindow.swift@@ -266,6 +266,7 @@ struct NotesWindowView: View {header(wide: geo.size.width >= 760)meetingBar.padding(.horizontal, 24).padding(.bottom, 4)banner.padding(.horizontal, 24).padding(.bottom, 4)+ if live { liveAsks.padding(.horizontal, 24).padding(.bottom, 4) }if live { LanguageNotice(model: model).padding(.horizontal, 24).padding(.bottom, 8) }// Where the scrolling starts: a hairline, and each column fades in under it (`topFade`).Rectangle().fill(MainWindowView.hairline).frame(height: 1)@@ -686,6 +687,42 @@ struct NotesWindowView: View {}}+ /// What the menu bar panel asks while you meet, here too: the panel is shut during a meeting,+ /// this window is what you look at.+ @ViewBuilder+ private var liveAsks: some View {+ if model.hybridMicDenied {+ ask(L("听会议室要先允许麦克风"), L("电脑声音照常在记")) {+ SoftButton(L("去设置"), dark: true) { model.openMicrophoneSettings() }+ }+ }+ if model.roomPrompt {+ ask(L("在会议室里开会?"), L("电脑里 1 分钟没放出声音")) {+ SoftButton(L("改听会议室"), dark: true) { model.answerRoomPrompt(true) }+ SoftButton(L("不是")) { model.answerRoomPrompt(false) }+ }+ }+ if let app = model.onlinePrompt {+ ask(L("线上也有人?"), L("\(app) 正在通话")) {+ SoftButton(L("也听电脑"), dark: true) { model.answerOnlinePrompt(true) }+ SoftButton(L("不用")) { model.answerOnlinePrompt(false) }+ }+ }+ }++ private func ask<Buttons: View>(_ title: String, _ detail: String, @ViewBuilder buttons: () -> Buttons) -> some View {+ HStack(spacing: 10) {+ VStack(alignment: .leading, spacing: 2) {+ Text(title).font(.system(size: 13, weight: .semibold)).foregroundStyle(Palette.ink)+ Text(detail).font(.system(size: 11)).foregroundStyle(Palette.secondary)+ }+ .frame(maxWidth: .infinity, alignment: .leading)+ buttons()+ }+ .padding(12)+ .background(RoundedRectangle(cornerRadius: 12).fill(Palette.accentPale))+ }+/// Lines the notes don't cover yet, once they are two minutes behind the meeting (between/// ordinary 45 s updates there is always a little that isn't in yet).private var behind: Int {diff --git a/Sources/Cicada/Onboarding.swift b/Sources/Cicada/Onboarding.swiftindex e371c86..e63ab63 100644--- a/Sources/Cicada/Onboarding.swift+++ b/Sources/Cicada/Onboarding.swift@@ -131,7 +131,11 @@ enum BrandImage {}()/// Menu bar template glyph: the logo in one colour. Paused draws it at 40%.- static func menuBar(live: Bool, badge: Bool = false) -> NSImage {+ /// What the dot on the menu bar glyph says: something to fix (orange, the colour that asks+ /// for a look) wins over a new version (grey, it can wait).+ enum Badge { case none, update, problem }++ static func menuBar(live: Bool, badge: Badge = .none) -> NSImage {let img = NSImage(size: NSSize(width: 18, height: 16), flipped: true) { _ inguard let c = NSGraphicsContext.current?.cgContext else { return false }// Design units 8…92 across and 16…94 down fill the 16 pt height.@@ -141,13 +145,13 @@ enum BrandImage {}img.isTemplate = trueimg.accessibilityDescription = appDisplayName- return badge ? withBadge(img) : img+ return badge == .none ? img : withBadge(img, badge)}- /// The glyph with an orange dot top right, while an update is available. A coloured dot+ /// The glyph with a dot top right. A coloured dot/// can't be part of a template image, so the glyph is filled with the label colour instead./// The dot is cut out of the glyph with a clear ring, so it reads as a badge, not part of the logo.- private static func withBadge(_ glyph: NSImage) -> NSImage {+ private static func withBadge(_ glyph: NSImage, _ badge: Badge) -> NSImage {let image = NSImage(size: glyph.size, flipped: false) { rect inglyph.draw(in: rect, from: .zero, operation: .sourceOver, fraction: 1)NSColor.labelColor.setFill()@@ -156,11 +160,12 @@ enum BrandImage {NSGraphicsContext.current?.compositingOperation = .clearNSBezierPath(ovalIn: dot.insetBy(dx: -1.5, dy: -1.5)).fill()NSGraphicsContext.current?.compositingOperation = .sourceOver- NSColor(red: 0xE8 / 255, green: 0x55 / 255, blue: 0x2B / 255, alpha: 1).setFill()+ (badge == .problem ? NSColor(red: 0xE8 / 255, green: 0x55 / 255, blue: 0x2B / 255, alpha: 1)+ : NSColor.secondaryLabelColor).setFill()NSBezierPath(ovalIn: dot).fill()return true}- image.accessibilityDescription = L("\(appDisplayName)(有新版本)")+ image.accessibilityDescription = badge == .problem ? L("\(appDisplayName)(需要处理)") : L("\(appDisplayName)(有新版本)")return image}}diff --git a/Sources/Cicada/Overlay.swift b/Sources/Cicada/Overlay.swiftindex 195e538..31e042f 100644--- a/Sources/Cicada/Overlay.swift+++ b/Sources/Cicada/Overlay.swift@@ -104,6 +104,19 @@ final class OverlayController {expand()}+ /// Something only you can fix (the microphone refused), kept above the subtitles until it is+ /// fixed: a status line would give way to the next subtitle. The bar is click-through, so it+ /// only says it; the menu bar's dot and the panel have the button.+ func setAlert(_ text: String?) {+ guard text != view.alert else { return }+ view.alert = text+ if text != nil {+ lastContentAt = Date()+ expand()+ }+ layout()+ }+func setSpeaking(_ s: Speaking?) {speakClearWork?.cancel()if s != nil {@@ -446,6 +459,7 @@ final class OverlayView: NSView {var translation = ""var isStatus = falsevar speaking: OverlayController.Speaking?+ var alert: String?var fontSize: CGFloat = 28var hover = falsevar snapped = false@@ -466,11 +480,14 @@ final class OverlayView: NSView {private func srcFont(_ fs: CGFloat) -> NSFont { .systemFont(ofSize: max(12, fs * 0.58), weight: .medium) }private func transFont(_ fs: CGFloat) -> NSFont { .systemFont(ofSize: fs, weight: .semibold) }private func speakFont(_ fs: CGFloat) -> NSFont { .systemFont(ofSize: max(14, fs * 0.78), weight: .semibold) }+ private func alertFont(_ fs: CGFloat) -> NSFont { .systemFont(ofSize: max(11, fs * 0.46), weight: .semibold) }+ private func alertHeight(_ fs: CGFloat) -> CGFloat { ceil(line(alertFont(fs)) + 6 * k(fs)) }private func line(_ f: NSFont) -> CGFloat { ceil(f.ascender - f.descender + f.leading) * 1.18 }func barHeight(fontSize fs: CGFloat) -> CGFloat {let pad = 14 * k(fs)var h = pad * 2 + line(srcFont(fs)) + 6 * k(fs) + line(transFont(fs)) * CGFloat(transLines)+ if alert != nil { h += alertHeight(fs) + 8 * k(fs) }if speaking != nil {h += 12 * k(fs) + line(srcFont(fs)) + line(speakFont(fs)) * 2}@@ -486,6 +503,19 @@ final class OverlayView: NSView {// MARK: Drawingoverride func draw(_ dirtyRect: NSRect) {+ if collapsed, let alert {+ // Tucked away with something to fix: the pill says it instead of the dots.+ let fs = fontSize+ let attrs: [NSAttributedString.Key: Any] = [.font: alertFont(fs), .foregroundColor: NSColor.white]+ let size = (alert as NSString).size(withAttributes: attrs)+ let h = alertHeight(fs)+ let w = min(barRect.width, ceil(size.width) + 2 * 12 * k(fs))+ let pill = NSRect(x: barRect.midX - w / 2, y: barRect.minY, width: w, height: h)+ accent.setFill()+ NSBezierPath(roundedRect: pill, xRadius: h / 2, yRadius: h / 2).fill()+ (alert as NSString).draw(at: NSPoint(x: pill.midX - size.width / 2, y: pill.midY - size.height / 2), withAttributes: attrs)+ return+ }if collapsed {// Tucked away: a small pill at the bottom centre — still listening.let pill = NSRect(x: barRect.midX - 23, y: barRect.minY, width: 46, height: 18)@@ -530,6 +560,20 @@ final class OverlayView: NSView {y -= maxH}+ if let alert {+ // An orange pill, centred over the subtitles.+ let font = alertFont(fs)+ let attrs: [NSAttributedString.Key: Any] = [.font: font, .foregroundColor: NSColor.white]+ let size = (alert as NSString).size(withAttributes: attrs)+ let h = alertHeight(fs)+ let w = min(inner.width, ceil(size.width) + 2 * 12 * k(fs))+ let pill = NSRect(x: inner.midX - w / 2, y: y - h, width: w, height: h)+ accent.setFill()+ NSBezierPath(roundedRect: pill, xRadius: h / 2, yRadius: h / 2).fill()+ (alert as NSString).draw(at: NSPoint(x: pill.midX - size.width / 2, y: pill.midY - size.height / 2), withAttributes: attrs)+ y -= h + 8 * k(fs)+ }+let srcText = isStatus ? "" : sourcedraw(srcText, font: srcFont(fs), color: NSColor.white.withAlphaComponent(0.62), maxLines: 1)y -= 6 * k(fs)diff --git a/site/changelog.json b/site/changelog.jsonindex 4c247e2..e80d9ed 100644--- a/site/changelog.json+++ b/site/changelog.json@@ -30,6 +30,14 @@"title": "语音模型下载太久时,可以先交给 Ling 听,装好后自动换回本机。","text": "等了一分半还没下完,或者下载失败,就会出现“先用 Ling 听”:Ling 整句识别和翻译,比本机慢两三秒;会议声音会发给 Ling,模型装好后自动换回。"},+ {+ "kind": "improved",+ "platforms": [+ "mac"+ ],+ "title": "会议中要你处理的事不再只藏在菜单栏面板里:纪要窗口、字幕条和菜单栏图标都会提示。",+ "text": "“电脑和会议室”没拿到麦克风时,纪要窗口顶部有“去设置”,字幕条上方挂一个橙色标签,菜单栏图标多一个橙点;纪要窗口收起时,10 秒后发一条系统通知,每场会议只发一次。“在会议室里开会?”“线上也有人?”也能直接在纪要窗口里回答。有新版本时菜单栏的点改成灰色。"+ },{"kind": "improved","platforms": [diff --git a/tools/README.md b/tools/README.mdindex af57140..55860aa 100644--- a/tools/README.md+++ b/tools/README.md@@ -7,7 +7,7 @@- `lsctl <命令>`:通过分布式通知 `com.wquguru.cicada.debug` 遥控 App。- 开关字幕:`start` / `stop`(`start:user` 当作用户点了开始听,纪要窗口立即出现;`start` 当作自动开始,等到有人说话)- - 听哪里:`listenSource:<system|room|both>`(both 是电脑和会议室:再开一个听麦克风的识别,`hybridState` 把两边的状态写进日志;`roomEcho:off` / `roomGate:off` 下一场会议不用回声消除 / 不在电脑放人声时关麦克风,单独试每道防线,日志 `hybrid: room line dropped as an echo` / `kept`;`voiceMicRun:<on|off>` 只开回声消除单元看它对别的声音有没有影响)(room 用麦克风听会议室,日志里 `room mic started: <设备>`,念译文时 `room mic muted` / `open`),`roomPrompt:<room|no>` 等于在“在会议室里开会?”里点“改听会议室”或“不是”(听电脑 60 秒没声音才出现,日志 `mac silent true`)+ - 听哪里:`listenSource:<system|room|both>`(both 是电脑和会议室:再开一个听麦克风的识别,`hybridState` 把两边的状态写进日志;`roomEcho:off` / `roomGate:off` 下一场会议不用回声消除 / 不在电脑放人声时关麦克风,单独试每道防线,日志 `hybrid: room line dropped as an echo` / `kept`;`voiceMicRun:<on|off>` 只开回声消除单元看它对别的声音有没有影响)(room 用麦克风听会议室,日志里 `room mic started: <设备>`,念译文时 `room mic muted` / `open`),`roomPrompt:<room|no>` 等于在“在会议室里开会?”里点“改听会议室”或“不是”(听电脑 60 秒没声音才出现,日志 `mac silent true`);`micDeniedSim:<on|off>` 让“电脑和会议室”当作麦克风被拒(纪要窗口顶部提示、字幕条橙色标签、菜单栏橙点,纪要窗口收起 10 秒后发一次通知,日志 `problem:` 和 `menu bar: badge=`)- 打开界面:`open`(主窗口)、`panel`(菜单栏面板)、`settings[:speak]`(设置,可指定栏目)- 虚拟麦克风:`micTest` 试音(往虚拟麦克风播一句再听回来,结果写进日志),`micNext` 做清单里的下一步- 会议软件的麦克风:`micUsers` 把每个读麦克风的进程和列表写进日志,`micGuide:<bundle id 或名字>` 打开怎么改,`micGuideRender:<bundle id>=<png>`