知了 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
refactor(notes): edit notes from the main window only; drop the speaking-style summary
wqugurudf702e1f7724
diff --git a/Resources/en.lproj/Localizable.strings b/Resources/en.lproj/Localizable.stringsindex 333bc4f..fbb2332 100644--- a/Resources/en.lproj/Localizable.strings+++ b/Resources/en.lproj/Localizable.strings@@ -1469,8 +1469,6 @@"在访达中显示" = "Show in Finder";/* Voiceprint memory */-"声纹库" = "Voice library";-"只保存在这台 Mac;删除后,以前的会议记录不会受影响。" = "Only on this Mac. Deleting a profile does not change past meeting records.";"还没有记住的人" = "No voices saved yet";"在会议里点一个说话人,选“记住这个声音”,下次就会自动认出。" = "In a meeting, open a speaker and choose Remember this voice; next time they will be recognized.";"名字" = "Name";@@ -1485,7 +1483,6 @@"还没在新会议里出现" = "Not seen in a new meeting yet";"记住说话人" = "Remember speakers";"按本机声纹认出以前见过的人;不会上传声音" = "Recognizes people by voice, on this Mac only";-"%lld 个人" = "%lld saved";"管理" = "Manage";"声纹库:可能是 %@(%lld%%)" = "Voice library: possibly %@ (%lld%%)";"声音像,但还不够确定。确认后,下次会议会直接认出。" = "It sounds similar, but isn't certain yet. Confirming makes the next meeting recognize them.";@@ -1503,7 +1500,6 @@"没有可用的录音" = "No usable recording";"打开“保存会议录音”,或用导入的录音文件建立声纹。" = "Turn on Save meeting audio, or use an imported recording to create a voiceprint.";"记住“%@”的声音?" = "Remember the voice of “%@”?";-"请先确认对方知道。声纹只保存在这台 Mac,用于以后会议认出这个人,可随时在声纹库里删除。" = "Make sure they know first. The voiceprint stays only on this Mac, is used to recognize this person in later meetings, and can be deleted from the voice library anytime.";"记住" = "Remember";"不用" = "Not now";"这个声音还不够清楚" = "This voice isn't clear enough";@@ -1528,3 +1524,27 @@/* Speaker on every line */"连续同一个人说话时也重复标出,不再只在换人时标" = "Repeat the tag on every line, not only when the speaker changes";+"这个人是谁?" = "Who is this?";+"写上名字后,这场记录会按这个名字显示。要下次自动认出,再点“记住这个声音”。" = "This meeting will show this name. To recognize them next time, also choose “Remember this voice”.";+"请先确认对方知道。声纹只保存在这台 Mac,用于以后会议认出这个人,可随时在人员库里删除。" = "Make sure they know first. The voiceprint stays only on this Mac, is used to recognize this person in later meetings, and can be deleted from People anytime.";+"编辑纪要" = "Edit Notes";+"改完保存在这场会议里;人名和术语也会用于以后整理。" = "Saved with this meeting; names and terms are also used for later notes.";+"名字写对后,纪要里所有人名会按这里显示;识别错的写法放在“听成”里。" = "Names in the notes follow the spelling here; put misheard spellings under “Heard as”.";+"例如:季度产品评审" = "e.g. Quarterly product review";+"议题标题" = "Topic title";+"要点" = "Point";+"听成(逗号分隔)" = "Heard as (comma-separated)";+"正确名字/术语" = "Correct name or term";+"说明(公司、职位…)" = "Note (company, role…)";+"%@内容" = "%@ text";+"负责人(可空)" = "Owner (optional)";+"手动改纪要、人名和术语" = "Edit the notes, names and terms by hand";+"人员库" = "People";+"%lld 个人 · 声纹和备注" = "%lld saved · voiceprints and notes";+"声纹只保存在这台 Mac;可以写备注,也可以删除。" = "Voiceprints stay only on this Mac. Add notes or delete them here.";+"资料" = "Details";+"人员资料" = "Person";+"备注(公司、职位、下次要记住的事)" = "Notes (company, role, what to remember)";+"标记这个人叫什么" = "Name this person";+"标记人名…" = "Name…";+"记住这个声音…" = "Remember This Voice…";diff --git a/Resources/ja.lproj/Localizable.strings b/Resources/ja.lproj/Localizable.stringsindex 35e7b32..ecaf10d 100644--- a/Resources/ja.lproj/Localizable.strings+++ b/Resources/ja.lproj/Localizable.strings@@ -1469,8 +1469,6 @@"在访达中显示" = "Finder で表示";/* Voiceprint memory */-"声纹库" = "声紋ライブラリ";-"只保存在这台 Mac;删除后,以前的会议记录不会受影响。" = "このMacだけに保存されます。削除しても過去の会議記録は変わりません。";"还没有记住的人" = "まだ登録された人はいません";"在会议里点一个说话人,选“记住这个声音”,下次就会自动认出。" = "会議で話者を開き「この声を記憶」を選ぶと、次回から自動で認識します。";"名字" = "名前";@@ -1485,7 +1483,6 @@"还没在新会议里出现" = "新しい会議ではまだ検出されていません";"记住说话人" = "話者を記憶";"按本机声纹认出以前见过的人;不会上传声音" = "このMac上で声紋により以前会った人を認識します。音声はアップロードしません";-"%lld 个人" = "%lld 人";"管理" = "管理";"声纹库:可能是 %@(%lld%%)" = "声紋ライブラリ:おそらく %@(%lld%%)";"声音像,但还不够确定。确认后,下次会议会直接认出。" = "声は似ていますが、まだ確実ではありません。確認すると次回から自動認識します。";@@ -1503,7 +1500,6 @@"没有可用的录音" = "使用できる録音がありません";"打开“保存会议录音”,或用导入的录音文件建立声纹。" = "「会議音声を保存」をオンにするか、取り込んだ録音から声紋を作成してください。";"记住“%@”的声音?" = "「%@」の声を記憶しますか?";-"请先确认对方知道。声纹只保存在这台 Mac,用于以后会议认出这个人,可随时在声纹库里删除。" = "まず相手に知らせてください。声紋はこのMacだけに保存され、今後の会議でこの人を認識するために使います。声紋ライブラリからいつでも削除できます。";"记住" = "記憶";"不用" = "今はしない";"这个声音还不够清楚" = "この声は十分に明瞭ではありません";@@ -1528,3 +1524,27 @@/* Speaker on every line */"连续同一个人说话时也重复标出,不再只在换人时标" = "話者が変わる時だけでなく、各行に話者を表示します";+"这个人是谁?" = "この人は誰ですか?";+"写上名字后,这场记录会按这个名字显示。要下次自动认出,再点“记住这个声音”。" = "この会議ではこの名前で表示されます。次回も自動で認識するには「この声を覚える」も選んでください。";+"请先确认对方知道。声纹只保存在这台 Mac,用于以后会议认出这个人,可随时在人员库里删除。" = "まず相手に知らせてください。声紋はこのMacだけに保存され、今後の会議でこの人を認識するために使います。「人物」からいつでも削除できます。";+"编辑纪要" = "メモを編集";+"改完保存在这场会议里;人名和术语也会用于以后整理。" = "この会議に保存されます。名前と用語は今後のメモにも使われます。";+"名字写对后,纪要里所有人名会按这里显示;识别错的写法放在“听成”里。" = "メモ内の名前はここの表記に揃います。聞き間違えた表記は「聞き取り」に入れてください。";+"例如:季度产品评审" = "例:四半期プロダクトレビュー";+"议题标题" = "トピック名";+"要点" = "要点";+"听成(逗号分隔)" = "聞き取り(カンマ区切り)";+"正确名字/术语" = "正しい名前・用語";+"说明(公司、职位…)" = "メモ(会社、役職…)";+"%@内容" = "%@の内容";+"负责人(可空)" = "担当者(任意)";+"手动改纪要、人名和术语" = "メモ・名前・用語を手で直す";+"人员库" = "人物";+"%lld 个人 · 声纹和备注" = "%lld人 · 声紋とメモ";+"声纹只保存在这台 Mac;可以写备注,也可以删除。" = "声紋はこのMacだけに保存されます。メモの追加や削除ができます。";+"资料" = "詳細";+"人员资料" = "人物の詳細";+"备注(公司、职位、下次要记住的事)" = "メモ(会社、役職、覚えておくこと)";+"标记这个人叫什么" = "この人に名前を付ける";+"标记人名…" = "名前を付ける…";+"记住这个声音…" = "この声を覚える…";diff --git a/Resources/ko.lproj/Localizable.strings b/Resources/ko.lproj/Localizable.stringsindex 0ee7c3c..5f2c11a 100644--- a/Resources/ko.lproj/Localizable.strings+++ b/Resources/ko.lproj/Localizable.strings@@ -1469,8 +1469,6 @@"在访达中显示" = "Finder에서 보기";/* Voiceprint memory */-"声纹库" = "음성 지문 보관함";-"只保存在这台 Mac;删除后,以前的会议记录不会受影响。" = "이 Mac에만 저장됩니다. 삭제해도 지난 회의 기록은 바뀌지 않습니다.";"还没有记住的人" = "아직 저장된 사람이 없습니다";"在会议里点一个说话人,选“记住这个声音”,下次就会自动认出。" = "회의에서 발화자를 열고 '이 목소리 기억'을 선택하면 다음부터 자동으로 인식합니다.";"名字" = "이름";@@ -1485,7 +1483,6 @@"还没在新会议里出现" = "새 회의에서 아직 감지되지 않았습니다";"记住说话人" = "발화자 기억";"按本机声纹认出以前见过的人;不会上传声音" = "이 Mac에서 음성 지문으로 이전에 만난 사람을 인식합니다. 오디오는 업로드하지 않습니다";-"%lld 个人" = "%lld명";"管理" = "관리";"声纹库:可能是 %@(%lld%%)" = "음성 지문 보관함: 아마 %@ (%lld%%)";"声音像,但还不够确定。确认后,下次会议会直接认出。" = "목소리가 비슷하지만 아직 확실하지 않습니다. 확인하면 다음 회의에서 바로 인식합니다.";@@ -1503,7 +1500,6 @@"没有可用的录音" = "사용할 수 있는 녹음이 없습니다";"打开“保存会议录音”,或用导入的录音文件建立声纹。" = "'회의 오디오 저장'을 켜거나 가져온 녹음으로 음성 지문을 만드세요.";"记住“%@”的声音?" = "“%@”의 목소리를 기억할까요?";-"请先确认对方知道。声纹只保存在这台 Mac,用于以后会议认出这个人,可随时在声纹库里删除。" = "먼저 상대방에게 알려 주세요. 음성 지문은 이 Mac에만 저장되며 앞으로 이 사람을 인식하는 데 사용됩니다. 음성 지문 보관함에서 언제든지 삭제할 수 있습니다.";"记住" = "기억";"不用" = "나중에";"这个声音还不够清楚" = "이 목소리가 충분히 선명하지 않습니다";@@ -1528,3 +1524,27 @@/* Speaker on every line */"连续同一个人说话时也重复标出,不再只在换人时标" = "화자가 바뀔 때만이 아니라 모든 줄에 화자를 표시합니다";+"这个人是谁?" = "이 사람은 누구인가요?";+"写上名字后,这场记录会按这个名字显示。要下次自动认出,再点“记住这个声音”。" = "이 회의에서는 이 이름으로 표시됩니다. 다음에도 자동으로 알아보려면 ‘이 목소리 기억하기’도 선택하세요.";+"请先确认对方知道。声纹只保存在这台 Mac,用于以后会议认出这个人,可随时在人员库里删除。" = "먼저 상대방에게 알려 주세요. 음성 지문은 이 Mac에만 저장되며 앞으로 이 사람을 인식하는 데 사용됩니다. ‘사람’에서 언제든지 삭제할 수 있습니다.";+"编辑纪要" = "메모 편집";+"改完保存在这场会议里;人名和术语也会用于以后整理。" = "이 회의에 저장됩니다. 이름과 용어는 이후 메모에도 쓰입니다.";+"名字写对后,纪要里所有人名会按这里显示;识别错的写法放在“听成”里。" = "메모 속 이름은 여기 표기를 따릅니다. 잘못 들린 표기는 ‘들린 말’에 넣으세요.";+"例如:季度产品评审" = "예: 분기 제품 리뷰";+"议题标题" = "주제 제목";+"要点" = "요점";+"听成(逗号分隔)" = "들린 말(쉼표로 구분)";+"正确名字/术语" = "올바른 이름·용어";+"说明(公司、职位…)" = "설명(회사, 직책…)";+"%@内容" = "%@ 내용";+"负责人(可空)" = "담당자(선택)";+"手动改纪要、人名和术语" = "메모, 이름, 용어를 직접 수정";+"人员库" = "사람";+"%lld 个人 · 声纹和备注" = "%lld명 · 음성 지문과 메모";+"声纹只保存在这台 Mac;可以写备注,也可以删除。" = "음성 지문은 이 Mac에만 저장됩니다. 메모를 쓰거나 삭제할 수 있습니다.";+"资料" = "정보";+"人员资料" = "사람 정보";+"备注(公司、职位、下次要记住的事)" = "메모(회사, 직책, 기억할 것)";+"标记这个人叫什么" = "이 사람 이름 붙이기";+"标记人名…" = "이름 붙이기…";+"记住这个声音…" = "이 목소리 기억하기…";diff --git a/Resources/zh-Hans.lproj/Localizable.strings b/Resources/zh-Hans.lproj/Localizable.stringsindex 5c0afca..d322535 100644--- a/Resources/zh-Hans.lproj/Localizable.strings+++ b/Resources/zh-Hans.lproj/Localizable.strings@@ -1377,8 +1377,6 @@"在访达中显示" = "在访达中显示";/* Voiceprint memory */-"声纹库" = "声纹库";-"只保存在这台 Mac;删除后,以前的会议记录不会受影响。" = "只保存在这台 Mac;删除后,以前的会议记录不会受影响。";"还没有记住的人" = "还没有记住的人";"在会议里点一个说话人,选“记住这个声音”,下次就会自动认出。" = "在会议里点一个说话人,选“记住这个声音”,下次就会自动认出。";"名字" = "名字";@@ -1393,7 +1391,6 @@"还没在新会议里出现" = "还没在新会议里出现";"记住说话人" = "记住说话人";"按本机声纹认出以前见过的人;不会上传声音" = "按本机声纹认出以前见过的人;不会上传声音";-"%lld 个人" = "%lld 个人";"管理" = "管理";"声纹库:可能是 %@(%lld%%)" = "声纹库:可能是 %@(%lld%%)";"声音像,但还不够确定。确认后,下次会议会直接认出。" = "声音像,但还不够确定。确认后,下次会议会直接认出。";@@ -1411,7 +1408,6 @@"没有可用的录音" = "没有可用的录音";"打开“保存会议录音”,或用导入的录音文件建立声纹。" = "打开“保存会议录音”,或用导入的录音文件建立声纹。";"记住“%@”的声音?" = "记住“%@”的声音?";-"请先确认对方知道。声纹只保存在这台 Mac,用于以后会议认出这个人,可随时在声纹库里删除。" = "请先确认对方知道。声纹只保存在这台 Mac,用于以后会议认出这个人,可随时在声纹库里删除。";"记住" = "记住";"不用" = "不用";"这个声音还不够清楚" = "这个声音还不够清楚";@@ -1436,3 +1432,27 @@/* Speaker on every line */"连续同一个人说话时也重复标出,不再只在换人时标" = "连续同一个人说话时也重复标出,不再只在换人时标";+"这个人是谁?" = "这个人是谁?";+"写上名字后,这场记录会按这个名字显示。要下次自动认出,再点“记住这个声音”。" = "写上名字后,这场记录会按这个名字显示。要下次自动认出,再点“记住这个声音”。";+"请先确认对方知道。声纹只保存在这台 Mac,用于以后会议认出这个人,可随时在人员库里删除。" = "请先确认对方知道。声纹只保存在这台 Mac,用于以后会议认出这个人,可随时在人员库里删除。";+"编辑纪要" = "编辑纪要";+"改完保存在这场会议里;人名和术语也会用于以后整理。" = "改完保存在这场会议里;人名和术语也会用于以后整理。";+"名字写对后,纪要里所有人名会按这里显示;识别错的写法放在“听成”里。" = "名字写对后,纪要里所有人名会按这里显示;识别错的写法放在“听成”里。";+"例如:季度产品评审" = "例如:季度产品评审";+"议题标题" = "议题标题";+"要点" = "要点";+"听成(逗号分隔)" = "听成(逗号分隔)";+"正确名字/术语" = "正确名字/术语";+"说明(公司、职位…)" = "说明(公司、职位…)";+"%@内容" = "%@内容";+"负责人(可空)" = "负责人(可空)";+"手动改纪要、人名和术语" = "手动改纪要、人名和术语";+"人员库" = "人员库";+"%lld 个人 · 声纹和备注" = "%lld 个人 · 声纹和备注";+"声纹只保存在这台 Mac;可以写备注,也可以删除。" = "声纹只保存在这台 Mac;可以写备注,也可以删除。";+"资料" = "资料";+"人员资料" = "人员资料";+"备注(公司、职位、下次要记住的事)" = "备注(公司、职位、下次要记住的事)";+"标记这个人叫什么" = "标记这个人叫什么";+"标记人名…" = "标记人名…";+"记住这个声音…" = "记住这个声音…";diff --git a/Sources/Cicada/AppModel.swift b/Sources/Cicada/AppModel.swiftindex f77d24b..028c886 100644--- a/Sources/Cicada/AppModel.swift+++ b/Sources/Cicada/AppModel.swift@@ -1536,7 +1536,7 @@ final class AppModel: ObservableObject {}let alert = NSAlert()alert.messageText = L("记住“\(chosen)”的声音?")- alert.informativeText = L("请先确认对方知道。声纹只保存在这台 Mac,用于以后会议认出这个人,可随时在声纹库里删除。")+ alert.informativeText = L("请先确认对方知道。声纹只保存在这台 Mac,用于以后会议认出这个人,可随时在人员库里删除。")alert.addButton(withTitle: L("记住"))alert.addButton(withTitle: L("不用"))guard alert.runModal() == .alertFirstButtonReturn else { return }@@ -1582,51 +1582,6 @@ final class AppModel: ObservableObject {speakerProfiles = profiles.all()}- /// Summarise how this person talks from the lines already bound to their voiceprint. This is a- /// communication-style note (length, questions, directness), not a personality diagnosis.- @discardableResult- func analyzeSpeakerStyle(id: UUID) -> String? {- guard let profile = profiles.snapshot().first(where: { $0.id == id }) else { return nil }- var texts: [String] = []- for session in store.sessions {- guard let refs = session.voiceProfiles else { continue }- for line in session.lines where line.speaker == "them" {- guard let voice = line.voice, refs[String(voice)]?.id == id else { continue }- let text = line.src.trimmingCharacters(in: .whitespacesAndNewlines)- if text.count >= 4 { texts.append(text) }- }- }- guard !texts.isEmpty else { return nil }- let joined = texts.joined(separator: " ")- let chars = joined.filter { !$0.isWhitespace }.count- let avg = Double(chars) / Double(texts.count)- let questions = texts.filter { $0.contains("?") || $0.contains("?") }.count- let hedges = count(["可能", "也许", "大概", "应该", "我觉得", "不确定", "或许"], in: joined)- let direct = count(["必须", "一定", "肯定", "直接", "明确", "需要", "马上", "推进", "决定", "要"], in: joined)- let first = count(["我", "我们"], in: joined)- var parts: [String] = ["基于 \(texts.count) 句发言"]- parts.append(avg >= 22 ? "句子偏长,信息密度高" : avg >= 10 ? "句子长度适中" : "表达简短,偏要点式")- if Double(questions) / Double(texts.count) >= 0.12 { parts.append("常用提问推动对话") }- if direct >= max(3, texts.count / 10) { parts.append("常给判断、要求和下一步") }- if hedges >= max(3, texts.count / 12) { parts.append("措辞较谨慎,常留余地") }- if first >= max(3, texts.count / 8) { parts.append("常用“我/我们”表达立场") }- let style = parts.joined(separator: ";") + "。只归纳说话方式,不是心理测评。"- _ = profiles.setStyle(id: profile.id, style)- speakerProfiles = profiles.all()- return style- }-- private func count(_ words: [String], in text: String) -> Int {- words.reduce(0) { total, word in- var n = 0, range = text.startIndex..<text.endIndex- while let r = text.range(of: word, range: range) {- n += 1- range = r.upperBound..<text.endIndex- }- return total + n- }- }-func deleteSpeakerProfile(id: UUID) {profiles.delete(id: id)speakerProfiles = profiles.all()diff --git a/Sources/Cicada/NotesEditorView.swift b/Sources/Cicada/NotesEditorView.swiftindex 43ae60a..53de192 100644--- a/Sources/Cicada/NotesEditorView.swift+++ b/Sources/Cicada/NotesEditorView.swift@@ -34,7 +34,7 @@ struct NotesEditorView: View {ScrollView {VStack(alignment: .leading, spacing: 18) {field("纪要标题") {- TextField("例如:招商局软件工厂沟通", text: optional(\.title))+ TextField("例如:季度产品评审", text: optional(\.title)).textFieldStyle(.roundedBorder)}diff --git a/Sources/Cicada/NotesWindow.swift b/Sources/Cicada/NotesWindow.swiftindex 9ab1b8c..45e5183 100644--- a/Sources/Cicada/NotesWindow.swift+++ b/Sources/Cicada/NotesWindow.swift@@ -362,8 +362,6 @@ struct NotesWindowView: View {.contentShape(Rectangle())}.buttonStyle(.plain).help("结束这场会议").padding(.trailing, 4)- } else if let s = session, !engine.notes.isEmpty {- NotesEditButton(model: model, session: s)}iconButton(wide ? "rectangle.split.2x1.fill" : "rectangle.split.2x1", help: wide ? L("收窄") : L("纪要和原话并排")) {setWidth(wide ? 460 : 820, nil)diff --git a/Sources/Cicada/SpeakerLibraryView.swift b/Sources/Cicada/SpeakerLibraryView.swiftindex b7e21b1..de23c83 100644--- a/Sources/Cicada/SpeakerLibraryView.swift+++ b/Sources/Cicada/SpeakerLibraryView.swift@@ -2,7 +2,7 @@ import AppKitimport SwiftUI/// The local people library: voices remembered by voiceprint, plus what the user knows about the-/// person and a note on how they tend to talk. Voiceprints are biometric data: every row can be+/// person. Voiceprints are biometric data: every row can be/// removed here, and nothing is uploaded.struct SpeakerLibraryView: View {@ObservedObject var model: AppModel@@ -18,7 +18,7 @@ struct SpeakerLibraryView: View {HStack {VStack(alignment: .leading, spacing: 3) {Text(L("人员库")).font(.system(size: 20, weight: .bold)).foregroundStyle(Palette.ink)- Text(L("声纹只保存在这台 Mac;可以写备注、看说话风格,也可以删除。"))+ Text(L("声纹只保存在这台 Mac;可以写备注,也可以删除。")).font(.system(size: 11)).foregroundStyle(Palette.tertiary)}Spacer()@@ -63,19 +63,12 @@ struct SpeakerLibraryView: View {} else {Button(L("资料")) { detail = p }.buttonStyle(.plain).font(.system(size: 12)).foregroundStyle(Palette.secondary)- Button(L("分析")) { analyze(p) }.buttonStyle(.plain)- .font(.system(size: 12)).foregroundStyle(Palette.secondary)Button(L("改名")) { editing = p.id; draft = p.name }.buttonStyle(.plain).font(.system(size: 12)).foregroundStyle(Palette.secondary)Button(L("删除")) { delete(p) }.buttonStyle(.plain).font(.system(size: 12)).foregroundStyle(Palette.accentInk)}}- if let style = p.style, !style.isEmpty {- Text(style).font(.system(size: 11)).foregroundStyle(Palette.secondary)- .lineLimit(3).fixedSize(horizontal: false, vertical: true)- .padding(.leading, 40)- }if let notes = p.notes, !notes.isEmpty {Text(notes).font(.system(size: 11)).foregroundStyle(Palette.tertiary).lineLimit(2).fixedSize(horizontal: false, vertical: true)@@ -108,17 +101,6 @@ struct SpeakerLibraryView: View {editing = nil}- private func analyze(_ p: SpeakerProfile) {- guard model.analyzeSpeakerStyle(id: p.id) != nil else {- let a = NSAlert()- a.messageText = L("还没有这个人的发言")- a.informativeText = L("先在会议里给这个声音命名并记住,分析会从已绑定到这个声纹的发言里归纳。")- a.addButton(withTitle: L("知道了"))- a.runModal()- return- }- }-private func delete(_ p: SpeakerProfile) {let a = NSAlert()a.messageText = L("删除“\(p.name)”的声纹?")@@ -175,15 +157,6 @@ struct SpeakerProfileEditor: View {.background(RoundedRectangle(cornerRadius: 8).fill(Palette.raised)).overlay(RoundedRectangle(cornerRadius: 8).stroke(Palette.line, lineWidth: 1))}- if let style = profile.style, !style.isEmpty {- VStack(alignment: .leading, spacing: 4) {- Text(L("说话风格")).font(.system(size: 11, weight: .semibold)).foregroundStyle(Palette.secondary)- Text(style).font(.system(size: 12)).foregroundStyle(Palette.secondary)- .fixedSize(horizontal: false, vertical: true)- Text(L("这是从发言内容做的表达方式归纳,不是心理测评。"))- .font(.system(size: 10)).foregroundStyle(Palette.tertiary)- }- }Spacer()HStack {Spacer()diff --git a/Sources/Cicada/SpeakerProfiles.swift b/Sources/Cicada/SpeakerProfiles.swiftindex 74c8297..55adab9 100644--- a/Sources/Cicada/SpeakerProfiles.swift+++ b/Sources/Cicada/SpeakerProfiles.swift@@ -15,9 +15,6 @@ struct SpeakerProfile: Codable, Identifiable, Equatable {var consentAt: Date?/// Notes the user keeps about this person: company, role, what to remember.var notes: String? = nil- /// A local communication-style summary (from what they said, not a psychological test).- var style: String? = nil- var styleUpdatedAt: Date? = nil}/// What a meeting remembers about a local voice id: enough to show the name even if the global@@ -211,20 +208,6 @@ final class SpeakerProfileStore: @unchecked Sendable {return updated}- @discardableResult- func setStyle(id: UUID, _ style: String, at date: Date = Date()) -> Bool {- var updated = false- mutate { profiles in- guard let i = profiles.firstIndex(where: { $0.id == id }) else { return }- let clean = style.trimmingCharacters(in: .whitespacesAndNewlines)- profiles[i].style = clean.isEmpty ? nil : String(clean.prefix(2000))- profiles[i].styleUpdatedAt = date- profiles[i].updatedAt = date- updated = true- }- return updated- }-func delete(id: UUID) {mutate { $0.removeAll { $0.id == id } }}diff --git a/Sources/Cicada/Views.swift b/Sources/Cicada/Views.swiftindex ba32630..68c54f9 100644--- a/Sources/Cicada/Views.swift+++ b/Sources/Cicada/Views.swift@@ -1201,8 +1201,9 @@ struct MainWindowView: View {.buttonStyle(.plain).help(showQuotes ? L("收起原话") : L("在纪要旁显示原话"))}- // Edit the notes, names and terms by hand (not while the meeting is being written).- if active == "notes", let notes = (s.id == store.liveID ? model.notes.notes : s.notes), !notes.isEmpty {+ // Edit the notes, names and terms by hand: here only, not in the notes panel (it never+ // takes focus), and not while the meeting is being written (the next pass would redo it).+ if active == "notes", s.id != store.liveID, importer.status(of: s) == nil, let notes = s.notes, !notes.isEmpty {NotesEditButton(model: model, session: s)}// Not while the meeting is still going, nor before an import has its text.