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(windows): a Mac + Room record opened on Windows keeps which lines were heard in the room

wquguru4da0a221a930
diff --git a/site/changelog.json b/site/changelog.json
index adb25d0..08a30c8 100644
--- a/site/changelog.json
+++ b/site/changelog.json
@@ -101,6 +101,14 @@
],
"title": "面对面的说明写清楚了:有人在线上时,把会议 app 开外放,两边都能记下。",
"text": "原来写的是“线下开会,或会议 app 开外放”,看不出现场和线上可以一起记。"
+ },
+ {
+ "kind": "fixed",
+ "platforms": [
+ "windows"
+ ],
+ "title": "Windows 打开 Mac 上“电脑和会议室”的会议记录,不再丢掉每句话是现场还是线上。",
+ "text": "原来在 Windows 上改名或重写纪要后,这个标记会从记录里消失,回到 Mac 上就分不出来了。"
}
]
},
diff --git a/windows/src/Cicada.Core/Models.cs b/windows/src/Cicada.Core/Models.cs
index c7756c1..90056ab 100644
--- a/windows/src/Cicada.Core/Models.cs
+++ b/windows/src/Cicada.Core/Models.cs
@@ -18,6 +18,8 @@ public sealed class TranscriptLine
[JsonPropertyName("srcLang")] public string SrcLang { get; set; } = "";
/// Seconds from the start of the session.
[JsonPropertyName("t")] public double T { get; set; }
+ /// 电脑和会议室: "room" when the room mic heard it; absent for the computer's audio (and older records).
+ [JsonPropertyName("via")] public string? Via { get; set; }
/// Experimental voice id on the Mac; Windows doesn't tell voices apart yet.
[JsonPropertyName("voice")] public int? Voice { get; set; }
diff --git a/windows/tests/Cicada.Tests/Program.cs b/windows/tests/Cicada.Tests/Program.cs
index d83bee7..5069a52 100644
--- a/windows/tests/Cicada.Tests/Program.cs
+++ b/windows/tests/Cicada.Tests/Program.cs
@@ -205,7 +205,7 @@ static class Tests
{
Id = "20261103-101611", Title = "会议 11月3日 10:16", HasAudio = false,
StartedAt = DateTimeOffset.Parse("2026-11-03T15:16:11Z"),
- Lines = [new TranscriptLine { Id = "h1-1", T = 2.7636849899291995, Src = "你好/世界", SrcLang = "zh-CN", DstLang = "en" }],
+ Lines = [new TranscriptLine { Id = "h1-1", T = 2.7636849899291995, Src = "你好/世界", SrcLang = "zh-CN", DstLang = "en", Via = "room", Voice = 1 }],
};
var json = Json.Write(s);
Check(json.Contains("\"startedAt\": \"2026-11-03T15:16:11Z\""), "dates are whole-second ISO-8601 UTC");
@@ -236,6 +236,15 @@ static class Tests
"srcLang" : "zh-CN",
"t" : 2.5,
"voice" : 1
+ },
+ {
+ "dstLang" : "en",
+ "id" : "h1000001-1000001",
+ "speaker" : "them",
+ "src" : "对",
+ "srcLang" : "zh-CN",
+ "t" : 3,
+ "via" : "room"
}
],
"notes" : {
@@ -251,8 +260,10 @@ static class Tests
}
""";
var s = Json.Read<Session>(mac)!;
- Equal(1, s.Lines.Count, "lines");
+ Equal(2, s.Lines.Count, "lines");
Equal(1, s.Lines[0].Voice, "voice");
+ Equal("room", s.Lines[1].Via, "via");
+ Equal(null, s.Lines[0].Via, "no via for the computer's audio");
Equal("Emma", s.VoiceNames!["1"], "voice names");
Equal(12.4, s.Notes!.Topics[0].PointTime(0), "point time");
Equal(null, s.Notes!.Topics[0].PointTime(1), "missing point time");