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.

fix(android): the floating subtitle bar marks what you say with Me speaking as Interpreted

wqugurue24b1990cedd
diff --git a/android/app/src/main/kotlin/com/wquguru/cicada/Overlay.kt b/android/app/src/main/kotlin/com/wquguru/cicada/Overlay.kt
index 8cbf173..501daab 100644
--- a/android/app/src/main/kotlin/com/wquguru/cicada/Overlay.kt
+++ b/android/app/src/main/kotlin/com/wquguru/cicada/Overlay.kt
@@ -331,7 +331,9 @@ class Overlay(private val app: CicadaApp) {
line == null -> box.addView(ui.text(L("等有人说话…"), 15f, if (dark) Palette.onScrim else Palette.secondary).apply { setPadding(ui.dp(if (dark) 0 else 14), ui.dp(10), 0, ui.dp(10)) })
dark -> {
val col = ui.stack(4)
- if (!line.dst.isNullOrEmpty() && line.dst != line.src) col.addView(ui.text(line.src, 13f, Palette.onScrim, lines = 2))
+ // My line (我说) says so, as the Mac's subtitle bar does.
+ if (!line.dst.isNullOrEmpty() && line.dst != line.src) col.addView(ui.text(NotesViews.said(line), 13f, Palette.onScrim, lines = 2))
+ else if (line.speaker == "me") col.addView(ui.text(L("你 · 同传"), 13f, Palette.onScrim))
col.addView(ui.text(line.dst ?: line.src, 20f, Color.WHITE, bold = true, lines = 3).apply { leading(1.2f) })
box.addView(col)
}
diff --git a/site/changelog.json b/site/changelog.json
index 20bbd36..5ad7c3c 100644
--- a/site/changelog.json
+++ b/site/changelog.json
@@ -56,6 +56,14 @@
],
"title": "Linux 的设置向导、设置和会议记录页说清楚:同声传译的译文是给线上的人听的,不再写成“对方”或“屋里”。",
"text": "英文界面原来写成会议室里的人听到译文;实际上译文只经“知了 麦克风”送进会议软件。"
+ },
+ {
+ "kind": "fixed",
+ "platforms": [
+ "android"
+ ],
+ "title": "悬浮窗的字幕条上,你用“我说”说的那句也标出“你 · 同传”。",
+ "text": "原来只有纪要卡片和正在听里有这个标记,字幕条只显示原话。"
}
]
},