Skip to content

知了 Cicada · 任何会议和直播的实时字幕、同声传译、AI 会议纪要,Mac、Windows、Linux、Android 免费开源。Live subtitles, interpreting and meeting notes for any call or stream, on Mac, Windows, Linux and Android.

feat: choose the microphone used for room meetings

Ali1995A981f00a70181
diff --git a/README.en.md b/README.en.md
index 8de9a51..141af19 100644
--- a/README.en.md
+++ b/README.en.md
@@ -175,3 +175,7 @@ See [AGENTS.md](AGENTS.md) for code architecture. The website source is in `site
## License
This project is licensed under [Apache-2.0](LICENSE). The BlackHole 2ch virtual microphone driver is licensed under the GPL; it is not bundled in the installer and is downloaded from its official URL when you click install. The bundled voiceprint model is [WeSpeaker](https://github.com/wenet-e2e/wespeaker)'s ResNet34-LM trained on VoxCeleb (CC BY 4.0), converted to Core ML by `scripts/convert-voiceprint.py`.
+
+## Meeting audio input
+
+Choose a meeting input in Settings → General: an iPhone Continuity microphone, AirPods, or another physical input exposed by macOS. This does not change the system default. Turn the meeting microphone off before switching. Automatic mode still favors room microphones; disconnected inputs use the existing fallback and notice. Continuity requires Apple's supported devices/account/network setup. AirPods primarily capture the wearer's voice.
diff --git a/README.ja.md b/README.ja.md
index ff04ad0..dceab2c 100644
--- a/README.ja.md
+++ b/README.ja.md
@@ -175,3 +175,7 @@ scripts/package.sh # 打包正式版 DMG、zip 和 SHA-256 校验值
## ライセンス
本プロジェクトは [Apache-2.0](LICENSE) ライセンスのもとで公開されています。仮想マイクドライバーの BlackHole 2ch は GPL ライセンスであり、インストーラーには同梱されず、インストールをクリックした際に公式の配布元からダウンロードされます。同梱の声紋モデルは [WeSpeaker](https://github.com/wenet-e2e/wespeaker) が VoxCeleb で学習した ResNet34-LM(CC BY 4.0 ライセンス)で、`scripts/convert-voiceprint.py` によって Core ML に変換されています。
+
+## 会議の音声入力
+
+設定 → 一般で、macOS に表示される iPhone 連係マイク、AirPods、その他の物理入力を選べます。システムの既定マイクは変更しません。切り替え前に会議マイクをオフにしてください。自動選択は会議室マイクを優先し、切断時は既存の代替選択と通知を使います。連係には Apple の対応機器・アカウント・ネットワーク条件が必要です。AirPods は主に装着者の声を収録します。
diff --git a/README.ko.md b/README.ko.md
index a41a05d..3976340 100644
--- a/README.ko.md
+++ b/README.ko.md
@@ -175,3 +175,7 @@ scripts/package.sh # 정식 버전 DMG, zip 및 SHA-256 체크섬 패
## 라이선스
이 프로젝트는 [Apache-2.0](LICENSE) 라이선스로 공개되어 있습니다. 가상 마이크 드라이버 BlackHole 2ch는 GPL 라이선스를 따르며 설치 패키지에 포함되지 않고 설치를 누를 때 공식 주소에서 내려받습니다. 포함된 성문 모델은 [WeSpeaker](https://github.com/wenet-e2e/wespeaker)가 VoxCeleb으로 학습한 ResNet34-LM(CC BY 4.0 라이선스)이며 `scripts/convert-voiceprint.py`로 Core ML로 변환했습니다.
+
+## 회의 오디오 입력
+
+설정 → 일반에서 macOS에 표시되는 iPhone 연속성 마이크, AirPods 또는 다른 물리 입력을 선택할 수 있습니다. 시스템 기본 마이크는 변경하지 않습니다. 전환하기 전에 회의 마이크를 끄세요. 자동 선택은 회의실 마이크를 우선하며 연결이 끊기면 기존 대체 선택과 알림을 사용합니다. 연속성은 Apple의 기기·계정·네트워크 조건을 충족해야 합니다. AirPods는 주로 착용자의 목소리를 수음합니다.
diff --git a/README.md b/README.md
index 5c77ea6..53e0df6 100644
--- a/README.md
+++ b/README.md
@@ -175,3 +175,7 @@ scripts/package.sh # 打包正式版 DMG、zip 和 SHA-256 校验值
## 开源协议
本项目采用 [Apache-2.0](LICENSE) 协议开源。虚拟麦克风驱动 BlackHole 2ch 采用 GPL 协议,不打包在安装包内,点安装时从其官方地址下载。随附的声纹模型是 [WeSpeaker](https://github.com/wenet-e2e/wespeaker) 在 VoxCeleb 上训练的 ResNet34-LM(CC BY 4.0 协议),由 `scripts/convert-voiceprint.py` 转为 Core ML。
+
+## 会议收音设备
+
+在设置 → 通用中选择会议收音设备,可使用 macOS 提供的 iPhone 连续互通麦克风、AirPods 或其他实体输入,不改变系统默认麦克风。切换前先关闭会议麦克风;自动选择仍优先会议室麦克风。设备断开时沿用自动选择及现有提示。iPhone 连续互通需满足 Apple 的设备、账号和网络条件;AirPods 主要收取佩戴者声音。
diff --git a/Resources/en.lproj/Localizable.strings b/Resources/en.lproj/Localizable.strings
index 435d594..544df2c 100644
--- a/Resources/en.lproj/Localizable.strings
+++ b/Resources/en.lproj/Localizable.strings
@@ -1375,3 +1375,11 @@
"去掉这些内容后就没有可分享的了。" = "Nothing would be left to share without these.";
"这场会议没有可分享的内容。" = "This meeting has nothing to share.";
"还有 %lld 处" = "And %lld more";
+
+/* Live meeting inputs */
+"会议收音设备" = "Meeting audio input";
+"先关闭麦克风再切换;可选 iPhone 连续互通或 AirPods" = "Turn the microphone off before switching; choose iPhone Continuity or AirPods";
+"所选麦克风未连接,暂用自动" = "Selected microphone unavailable; using Automatic";
+"当前收音" = "Current audio input";
+"麦克风未启动" = "Microphone not active";
+"刷新设备" = "Refresh devices";
diff --git a/Resources/ja.lproj/Localizable.strings b/Resources/ja.lproj/Localizable.strings
index b47147e..5dd5e18 100644
--- a/Resources/ja.lproj/Localizable.strings
+++ b/Resources/ja.lproj/Localizable.strings
@@ -1375,3 +1375,11 @@
"去掉这些内容后就没有可分享的了。" = "これらを除くと共有できるものが残りません。";
"这场会议没有可分享的内容。" = "この会議には共有できる内容がありません。";
"还有 %lld 处" = "ほか %lld か所";
+
+/* Live meeting inputs */
+"会议收音设备" = "会議の音声入力";
+"先关闭麦克风再切换;可选 iPhone 连续互通或 AirPods" = "切り替える前にマイクをオフに。iPhone 連係または AirPods を選択";
+"所选麦克风未连接,暂用自动" = "選択したマイクは未接続。自動選択を使用";
+"当前收音" = "現在の音声入力";
+"麦克风未启动" = "マイクは起動していません";
+"刷新设备" = "デバイスを更新";
diff --git a/Resources/ko.lproj/Localizable.strings b/Resources/ko.lproj/Localizable.strings
index cabe7eb..6a22f1e 100644
--- a/Resources/ko.lproj/Localizable.strings
+++ b/Resources/ko.lproj/Localizable.strings
@@ -1375,3 +1375,11 @@
"去掉这些内容后就没有可分享的了。" = "이 내용을 빼면 공유할 것이 남지 않습니다.";
"这场会议没有可分享的内容。" = "이 회의에는 공유할 내용이 없습니다.";
"还有 %lld 处" = "외 %lld곳";
+
+/* Live meeting inputs */
+"会议收音设备" = "회의 오디오 입력";
+"先关闭麦克风再切换;可选 iPhone 连续互通或 AirPods" = "전환 전 마이크를 끄세요. iPhone 연속성 또는 AirPods 선택";
+"所选麦克风未连接,暂用自动" = "선택한 마이크가 연결되지 않아 자동 선택 사용";
+"当前收音" = "현재 오디오 입력";
+"麦克风未启动" = "마이크가 활성화되지 않음";
+"刷新设备" = "기기 새로 고침";
diff --git a/Resources/zh-Hans.lproj/Localizable.strings b/Resources/zh-Hans.lproj/Localizable.strings
index 39ce922..ee272df 100644
--- a/Resources/zh-Hans.lproj/Localizable.strings
+++ b/Resources/zh-Hans.lproj/Localizable.strings
@@ -1323,3 +1323,11 @@
"导入 %lld 个" = "导入 %lld 个";
/* Notes: a to-do's owner after it */
"待办的负责人 %@" = "(%@)";
+
+/* Live meeting inputs */
+"会议收音设备" = "会议收音设备";
+"先关闭麦克风再切换;可选 iPhone 连续互通或 AirPods" = "先关闭麦克风再切换;可选 iPhone 连续互通或 AirPods";
+"所选麦克风未连接,暂用自动" = "所选麦克风未连接,暂用自动";
+"当前收音" = "当前收音";
+"麦克风未启动" = "麦克风未启动";
+"刷新设备" = "刷新设备";
diff --git a/Sources/Cicada/AppModel.swift b/Sources/Cicada/AppModel.swift
index 23e3410..75265ec 100644
--- a/Sources/Cicada/AppModel.swift
+++ b/Sources/Cicada/AppModel.swift
@@ -313,7 +313,7 @@ final class AppModel: ObservableObject {
speak.roomLanguage = { [weak self] in self?.listen.activeLang?.code }
speak.inputDevice = { [weak self] in self?.systemMic.recordingDevice }
let roomMic = { [weak self] () -> OutputDevice? in
- MainActor.assumeIsolated { AudioDevices.roomMic(excluding: self?.fakeGoneMics ?? []) }
+ MainActor.assumeIsolated { AudioDevices.roomMic(excluding: self?.fakeGoneMics ?? [], preferredUID: self?.settings.roomMicUID) }
}
listen.roomDevice = roomMic
roomListen.roomDevice = roomMic
@@ -389,7 +389,7 @@ final class AppModel: ObservableObject {
guard let engine = both ? roomListen : settings.listensToRoom && listen.isRunning ? listen : nil,
let uid = engine.roomMicUID,
fakeGoneMics.contains(uid) || !AudioDevices.inputs().contains(where: { $0.uid == uid }) else { return }
- let next = AudioDevices.roomMic(excluding: fakeGoneMics)
+ let next = AudioDevices.roomMic(excluding: fakeGoneMics, preferredUID: settings.roomMicUID)
debugLog("room mic gone: \(uid) → \(next?.name ?? "none")")
if next != nil { engine.reconnectAudio() } else if both { stopRoomSide() } else { stop() }
let note = RoomMicLoss.detail(next: next?.name, builtIn: next.map { AudioDevices.transport($0.id) == kAudioDeviceTransportTypeBuiltIn } ?? false,
@@ -897,6 +897,13 @@ final class AppModel: ObservableObject {
/// Not kept for the next launch: listening starts by itself, never with the microphone open.
var micOn: Bool { settings.hearsRoom }
+ /// The actual pinned live input, rather than a saved preference that may be disconnected.
+ var activeMeetingInputName: String? {
+ let engine = settings.hearsBoth ? roomListen : listen
+ guard settings.hearsRoom, engine.isRunning, let uid = engine.roomMicUID else { return nil }
+ return AudioDevices.inputs().first { $0.uid == uid }?.name
+ }
+
func setMic(_ on: Bool) {
let value = !on ? "system" : Recognition.legacy ? "room" : "both"
// Asking for the room is asking to listen, even with the switch already on.
diff --git a/Sources/Cicada/RoomMic.swift b/Sources/Cicada/RoomMic.swift
index 3a5df5d..af1a082 100644
--- a/Sources/Cicada/RoomMic.swift
+++ b/Sources/Cicada/RoomMic.swift
@@ -24,7 +24,11 @@ enum RoomMicPlan {
/// The system default, unless it is the virtual mic (同声传译 makes it the default) or a
/// Bluetooth headset's (AirPods hear the wearer, not the table, and drop to call quality while
/// their mic is open); then the Mac's own microphone.
- static func pick(defaultUID: String?, inputs: [Input]) -> String? {
+ static func pick(defaultUID: String?, inputs: [Input], preferredUID: String? = nil) -> String? {
+ // Automatic mode favors a table mic; an explicit choice may be an AirPods mic.
+ if let preferred = inputs.first(where: { $0.uid == preferredUID }), !preferred.virtual {
+ return preferred.uid
+ }
if let d = inputs.first(where: { $0.uid == defaultUID }), !d.virtual, !d.bluetooth { return d.uid }
return inputs.first(where: \.builtIn)?.uid
?? inputs.first(where: { !$0.virtual && !$0.bluetooth })?.uid
@@ -96,7 +100,7 @@ extension AudioDevices {
static var roomMic: OutputDevice? { roomMic(excluding: []) }
/// `excluding`: inputs to treat as gone (the debug command's pretend unplug).
- static func roomMic(excluding: Set<String>) -> OutputDevice? {
+ static func roomMic(excluding: Set<String>, preferredUID: String? = nil) -> OutputDevice? {
let all = inputs().filter { !excluding.contains($0.uid) }
let plan = all.map { d -> RoomMicPlan.Input in
let t = transport(d.id)
@@ -105,7 +109,7 @@ extension AudioDevices {
// The aggregate macOS makes for echo cancellation is no microphone of its own.
virtual: d.isVirtualMic || d.uid.hasPrefix("CADefaultDeviceAggregate"))
}
- let uid = RoomMicPlan.pick(defaultUID: defaultInput?.uid, inputs: plan)
+ let uid = RoomMicPlan.pick(defaultUID: defaultInput?.uid, inputs: plan, preferredUID: preferredUID)
return all.first { $0.uid == uid }
}
}
diff --git a/Sources/Cicada/Settings.swift b/Sources/Cicada/Settings.swift
index 998bd92..524b315 100644
--- a/Sources/Cicada/Settings.swift
+++ b/Sources/Cicada/Settings.swift
@@ -211,6 +211,10 @@ final class AppSettings: ObservableObject {
@Published var listenSource: String {
didSet { save() }
}
+ /// Meeting input UID; empty keeps automatic selection. Does not change the system default.
+ @Published var roomMicUID: String {
+ didSet { save() }
+ }
/// Only the room: nothing is in a call on this Mac (the translation is read out of the speakers).
var listensToRoom: Bool { listenSource == "room" }
/// The room mic is open: 会议室 or 电脑和会议室.
@@ -267,6 +271,7 @@ final class AppSettings: ObservableObject {
silenceEnd = defaults.string(forKey: "silenceEnd") ?? "prompt"
silenceMinutes = defaults.object(forKey: "silenceMinutes") as? Double ?? 10
listenSource = ["room", "both"].contains(defaults.string(forKey: "listenSource")) ? defaults.string(forKey: "listenSource")! : "system"
+ roomMicUID = defaults.string(forKey: "roomMicUID") ?? ""
diagnostics = defaults.object(forKey: "diagnostics") as? Bool ?? DevBuild.isDev
notesCapturable = defaults.bool(forKey: "notesCapturable")
fixMisheard = defaults.object(forKey: "fixMisheard") as? Bool ?? true
@@ -322,6 +327,7 @@ final class AppSettings: ObservableObject {
defaults.set(silenceEnd, forKey: "silenceEnd")
defaults.set(silenceMinutes, forKey: "silenceMinutes")
defaults.set(listenSource, forKey: "listenSource")
+ defaults.set(roomMicUID, forKey: "roomMicUID")
defaults.set(diagnostics, forKey: "diagnostics")
defaults.set(notesCapturable, forKey: "notesCapturable")
defaults.set(speakerVoices, forKey: "speakerVoices")
diff --git a/Sources/Cicada/SettingsWindow.swift b/Sources/Cicada/SettingsWindow.swift
index 6d18ddf..e9268ca 100644
--- a/Sources/Cicada/SettingsWindow.swift
+++ b/Sources/Cicada/SettingsWindow.swift
@@ -717,8 +717,32 @@ struct SettingsView: View {
}
}
+ private var meetingInput: some View {
+ let inputs = AudioDevices.inputs().filter {
+ !$0.isVirtualMic && !$0.uid.hasPrefix("CADefaultDeviceAggregate")
+ }
+ let chosen = inputs.first { $0.uid == settings.roomMicUID }?.name
+ let value = settings.roomMicUID.isEmpty ? L("自动") : chosen ?? L("所选麦克风未连接,暂用自动")
+ return SettingsCard {
+ SettingsRow(title: L("会议收音设备"),
+ detail: L("先关闭麦克风再切换;可选 iPhone 连续互通或 AirPods"),
+ divider: false) {
+ PillMenu(value: value, options: [("", L("自动"))] + inputs.map { ($0.uid, $0.name) }) {
+ guard !model.micOn else { return }
+ settings.roomMicUID = $0
+ }
+ .disabled(model.micOn)
+ }
+ SettingsRow(title: L("当前收音"),
+ detail: model.activeMeetingInputName ?? L("麦克风未启动"), divider: false) {
+ SoftButton(L("刷新设备")) { model.refreshOutputs() }
+ }
+ }
+ }
+
private var records: some View {
VStack(alignment: .leading, spacing: 14) {
+ meetingInput
SettingsCard {
SettingsRow(title: L("保存会议录音"), detail: L("只存在这台 Mac 上")) {
Toggle("保存会议录音", isOn: $settings.recordAudio)
diff --git a/Tests/CicadaTests/RoomTests.swift b/Tests/CicadaTests/RoomTests.swift
index b3d4f3e..f15ddd4 100644
--- a/Tests/CicadaTests/RoomTests.swift
+++ b/Tests/CicadaTests/RoomTests.swift
@@ -9,6 +9,27 @@ import Testing
let airpods = In(uid: "airpods", bluetooth: true)
let blackhole = In(uid: "blackhole", virtual: true)
+
+ @Test func explicitPhoneWinsOverTheSystemDefault() {
+ let phone = In(uid: "continuity-iphone")
+ #expect(RoomMicPlan.pick(defaultUID: "builtin", inputs: [builtIn, phone],
+ preferredUID: phone.uid) == phone.uid)
+ }
+
+ @Test func explicitHeadsetIsHonoredForPersonalNotes() {
+ #expect(RoomMicPlan.pick(defaultUID: "builtin", inputs: [builtIn, airpods],
+ preferredUID: airpods.uid) == airpods.uid)
+ }
+
+ @Test func missingOrVirtualPreferenceFallsBackSafely() {
+ #expect(RoomMicPlan.pick(defaultUID: "usb", inputs: [builtIn, usb],
+ preferredUID: "missing-phone") == "usb")
+ #expect(RoomMicPlan.pick(defaultUID: "builtin", inputs: [builtIn, blackhole],
+ preferredUID: blackhole.uid) == "builtin")
+ #expect(RoomMicPlan.pick(defaultUID: nil, inputs: [],
+ preferredUID: "missing-phone") == nil)
+ }
+
@Test func keepsTheChosenMicrophone() {
#expect(RoomMicPlan.pick(defaultUID: "usb", inputs: [builtIn, usb, airpods]) == "usb")
#expect(RoomMicPlan.pick(defaultUID: "builtin", inputs: [builtIn, usb]) == "builtin")
diff --git a/site/changelog.json b/site/changelog.json
index fbb5a86..99f7916 100644
--- a/site/changelog.json
+++ b/site/changelog.json
@@ -1,4 +1,21 @@
[
+ {
+ "version": "1.7.0",
+ "date": null,
+ "title": "选择会议收音设备",
+ "summary": "可指定会议的实体麦克风,不改变系统默认输入。",
+ "image": null,
+ "items": [
+ {
+ "kind": "new",
+ "platforms": [
+ "mac"
+ ],
+ "title": "选择会议收音设备。",
+ "text": "设置 → 通用可选择 iPhone 连续互通麦克风、AirPods 或其他实体输入。切换前关闭会议麦克风;自动模式仍优先会议室麦克风。"
+ }
+ ]
+ },
{
"version": "1.6.0",
"date": "2026-11-08",