知了 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(ios): with Their language on Auto-detect, a meeting heard from across the room shows its lines within seconds instead of holding them for 90 s
wquguruaf02e965d681
diff --git a/ios/Sources/Cicada/RoomListen.swift b/ios/Sources/Cicada/RoomListen.swiftindex 250d109..f8226a3 100644--- a/ios/Sources/Cicada/RoomListen.swift+++ b/ios/Sources/Cicada/RoomListen.swift@@ -443,6 +443,13 @@ final class RoomListen: ObservableObject {private func handle(_ piece: Recognition.Piece, _ gen: Int) {guard gen == generation else { return }+ // Words heard are a voice too: across a room the level stays under the voice mark (a laptop+ // a metre away peaked at 0.26), and without this 自动识别 never checked and held every line 90 s.+ if !piece.text.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty {+ heardVoice = true+ lastVoiceAt = Date()+ if !settled, status.isEmpty { status = L("正在识别语言…") }+ }// 自动识别 not settled: a line in what may be the wrong language waits, and no draft shows.guard settled else {if piece.isFinal { held.append(piece) }