知了 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
fix: the room is heard in your own language from the start, and room lines show even when its language isn't certain
wquguru03f67ac4bdfb
diff --git a/Sources/Cicada/ListenEngine.swift b/Sources/Cicada/ListenEngine.swiftindex 87c2a25..57b6bf3 100644--- a/Sources/Cicada/ListenEngine.swift+++ b/Sources/Cicada/ListenEngine.swift@@ -133,6 +133,10 @@ final class ListenEngine {private var recordable: Bool {settings.sourceMode != .auto || languageConfirmed || (ambiguousDetections >= 2 && !mismatch)|| legacySingleLanguage || cloudListening+ // The room side's 听不出 never reaches the panel (it reads the main engine): held lines would+ // stay held all meeting. Measured: a show from a phone across the table scored 0.56–0.71 for+ // Chinese, never confirmed, and not one room line was written in 40 s.+ || role == .room}/// macOS 14/15 with one Dictation language: nothing to compare it with and none Cicada could/// fetch, and every check takes the recognizer from the meeting. It is taken as heard.@@ -348,7 +352,9 @@ final class ListenEngine {let last = UserDefaults.standard.string(forKey: "lastDetected")let likely = likelySourceLanguages(last: last, systemLanguages: systemLanguages)// No model at all: start with the likeliest; the second follows in the background.- initial = candidates.first(where: { $0.locale == last }) ?? candidates.first ?? likely.first ?? sourceLanguages[0]+ // The people at the table most likely speak yours (同声传译's 我说), not the last online meeting's.+ let mine = role == .room || settings.listensToRoom ? candidates.first(where: { $0.locale == settings.speakFromLang.locale }) : nil+ initial = mine ?? candidates.first(where: { $0.locale == last }) ?? candidates.first ?? likely.first ?? sourceLanguages[0]}// 会议室 the first time: nothing is heard until macOS's microphone question is answered.setStatus(audioTap == nil ? L("等你允许使用麦克风") : L("正在听"))diff --git a/site/changelog.json b/site/changelog.jsonindex 7176d32..d25cb21 100644--- a/site/changelog.json+++ b/site/changelog.json@@ -328,6 +328,14 @@],"title": "Windows 上电脑一时卡顿,不再把一句话拆成两句。","text": ""+ },+ {+ "kind": "fixed",+ "platforms": [+ "mac"+ ],+ "title": "听会议室时,一开始就按你说的语言听,听不准语言也照样出字幕。",+ "text": "原来沿用上次线上会议的语言,桌边说中文时先记成一串英文;“电脑和会议室”里会议室那一路认不准语言时,句子会一直压着不出来。"}]},