知了 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: Keep two speakers' lines apart on macOS 14 and 15 instead of joining them into one
wqugurud354fa6df66c
diff --git a/Sources/LiveSubs/AppModel.swift b/Sources/LiveSubs/AppModel.swiftindex 44f00ac..6fa3a8c 100644--- a/Sources/LiveSubs/AppModel.swift+++ b/Sources/LiveSubs/AppModel.swift@@ -1051,6 +1051,9 @@ final class AppModel: ObservableObject {}guard let prev = lastHeard, store.session(store.liveID ?? "")?.lines.last?.id == prev.line,prev.seg.clock == seg.clock, prev.seg.sourceCode == seg.sourceCode,+ // macOS 14/15: the older recognizer ends a line only at a real pause and often drops+ // the full stop, so a missing one says nothing; only a line Cicada cut is a half sentence.+ !Recognition.legacy || prev.seg.cut,HeardText.continues(prev.seg.text, seg.text, gap: seg.start - prev.seg.end, cut: prev.seg.cut) else {appendHeard(seg, t: t, tag: true)return