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.

feat: Share… copies the link and password together as one message in the app's language

wquguru64b94712a1ef
diff --git a/README.en.md b/README.en.md
index 8de9a51..9ae0cd2 100644
--- a/README.en.md
+++ b/README.en.md
@@ -68,7 +68,7 @@ Hold the right `⌥` key and speak so the other side hears your translated voice
### Meeting records
-Bilingual transcripts, notes, and raw audio recordings are saved on your computer. Click any line to play the recording from that point. The bundled on-device voiceprint model automatically separates different speakers (and fills in their names when a Ling key is set), and you can rename or merge them anytime if it gets someone wrong. After a meeting, you can generate notes retroactively or export to Markdown, Word, or SRT subtitles. **Share…** turns the notes (and, if you like, the bilingual transcript) into a link with an expiry and an optional password; before anything is uploaded it is checked for keys, unpublished company information and other sensitive content, and held back if any is found. You can also turn local audio or video files into bilingual records via **File › Import Recording or Video…**. Right now "you" in the record only covers what you say while holding the talk key; capturing what you say directly in the meeting is on the [roadmap](#roadmap).
+Bilingual transcripts, notes, and raw audio recordings are saved on your computer. Click any line to play the recording from that point. The bundled on-device voiceprint model automatically separates different speakers (and fills in their names when a Ling key is set), and you can rename or merge them anytime if it gets someone wrong. After a meeting, you can generate notes retroactively or export to Markdown, Word, or SRT subtitles. **Share…** turns the notes (and, if you like, the bilingual transcript) into a link with an expiry and an optional password, copied together with one click; before anything is uploaded it is checked for keys, unpublished company information and other sensitive content, and held back if any is found. You can also turn local audio or video files into bilingual records via **File › Import Recording or Video…**. Right now "you" in the record only covers what you say while holding the talk key; capturing what you say directly in the meeting is on the [roadmap](#roadmap).
<p align="center">
<img src="docs/records.png" width="640" alt="Meeting records window showing identified speakers and a line-by-line English and Chinese transcript">
diff --git a/README.ja.md b/README.ja.md
index ff04ad0..b4a135e 100644
--- a/README.ja.md
+++ b/README.ja.md
@@ -68,7 +68,7 @@ AI サービスをつなぐと、聞き間違えた人名や用語をその場
### 会議の記録
-二か国語の記録、メモ、元の録音はすべて端末内に保存されます。任意の文をクリックするとその位置から録音を再生でき、端末内の声紋モデルが話者を自動で区別します(Ling キーがあれば名前も補完)。間違っていればいつでも名前の変更や統合ができます。会議後にメモを追加生成したり、Markdown、Word、SRT 字幕にエクスポートしたりすることも可能です。「共有…」でメモ(希望すればバイリンガル全文も)を有効期限とパスワード付きのリンクにでき、アップロード前にキーや未公開の社内情報などの機密内容がないかチェックし、見つかれば止めます。「ファイル › 録音・動画を読み込む…」から手元の音声や動画を素早く二か国語の記録に変換することもできます。現在、記録内の「あなた」に含まれるのは話すキーを押して話した内容のみで、会議でそのまま話した分については[ロードマップ](#ロードマップ)をご覧ください。
+二か国語の記録、メモ、元の録音はすべて端末内に保存されます。任意の文をクリックするとその位置から録音を再生でき、端末内の声紋モデルが話者を自動で区別します(Ling キーがあれば名前も補完)。間違っていればいつでも名前の変更や統合ができます。会議後にメモを追加生成したり、Markdown、Word、SRT 字幕にエクスポートしたりすることも可能です。「共有…」でメモ(希望すればバイリンガル全文も)を有効期限とパスワード付きのリンクにでき(リンクとパスワードはワンクリックでまとめてコピー)、アップロード前にキーや未公開の社内情報などの機密内容がないかチェックし、見つかれば止めます。「ファイル › 録音・動画を読み込む…」から手元の音声や動画を素早く二か国語の記録に変換することもできます。現在、記録内の「あなた」に含まれるのは話すキーを押して話した内容のみで、会議でそのまま話した分については[ロードマップ](#ロードマップ)をご覧ください。
<p align="center">
<img src="docs/records.png" width="640" alt="識別された話者と、1 行ずつの英語と中国語の書き起こしを表示した会議の記録のウィンドウ">
diff --git a/README.ko.md b/README.ko.md
index a41a05d..0d1c2b2 100644
--- a/README.ko.md
+++ b/README.ko.md
@@ -68,7 +68,7 @@ AI 서비스를 연결하면 잘못 들은 인명과 용어를 그 자리에서
### 회의 기록
-이중 언어 기록, 회의록, 원본 녹음은 모두 기기에 저장됩니다. 아무 문장이나 클릭하면 그 위치부터 녹음을 다시 들을 수 있고, 기기 내 성문 모델이 화자를 자동으로 구분하며(Ling 키가 있으면 이름도 채움), 잘못 구분되면 언제든 이름을 바꾸거나 합칠 수 있습니다. 회의 후 회의록을 추가로 생성하거나 Markdown, Word, SRT 자막으로 내보낼 수 있습니다. "공유…"로 회의록(원하면 이중 언어 전문까지)을 유효 기간과 비밀번호를 정한 링크로 만들 수 있으며, 업로드 전에 키나 공개되지 않은 회사 정보 같은 민감한 내용이 있는지 확인하고 있으면 막습니다. "파일 › 녹음 또는 동영상 가져오기…"로 로컬 오디오·비디오를 이중 언어 기록으로 빠르게 변환할 수도 있습니다. 현재 기록에 남는 내 발언은 말하기 키를 누르고 말한 내용뿐이며, 회의에서 바로 말한 부분은 [로드맵](#로드맵)을 참고하세요.
+이중 언어 기록, 회의록, 원본 녹음은 모두 기기에 저장됩니다. 아무 문장이나 클릭하면 그 위치부터 녹음을 다시 들을 수 있고, 기기 내 성문 모델이 화자를 자동으로 구분하며(Ling 키가 있으면 이름도 채움), 잘못 구분되면 언제든 이름을 바꾸거나 합칠 수 있습니다. 회의 후 회의록을 추가로 생성하거나 Markdown, Word, SRT 자막으로 내보낼 수 있습니다. "공유…"로 회의록(원하면 이중 언어 전문까지)을 유효 기간과 비밀번호를 정한 링크로 만들 수 있고(링크와 비밀번호는 한 번에 복사), 업로드 전에 키나 공개되지 않은 회사 정보 같은 민감한 내용이 있는지 확인하고 있으면 막습니다. "파일 › 녹음 또는 동영상 가져오기…"로 로컬 오디오·비디오를 이중 언어 기록으로 빠르게 변환할 수도 있습니다. 현재 기록에 남는 내 발언은 말하기 키를 누르고 말한 내용뿐이며, 회의에서 바로 말한 부분은 [로드맵](#로드맵)을 참고하세요.
<p align="center">
<img src="docs/records.png" width="640" alt="구분된 화자 이름과 문장별 영중 이중 언어 기록이 표시된 회의 기록 창">
diff --git a/README.md b/README.md
index 5c77ea6..4bd84bd 100644
--- a/README.md
+++ b/README.md
@@ -68,7 +68,7 @@
### 会议记录
-双语记录、纪要和原始录音都存在本机。点任意一句就能从那儿回放录音,本机声纹模型会自动区分不同说话人(填了 Ling key 会填上名字),认错了随时改名或合并。会后支持补生成纪要,或导出 Markdown、Word 和 SRT 字幕。点“分享…”可以把纪要(也可以带上双语全文)发成一个链接,能设有效期和密码;上传前会先检查有没有密钥、未公开的公司信息这类敏感内容,有就先拦下。你也可以通过“文件 › 导入录音或视频…”把本地音视频快速转成双语记录。目前记录里的你只包含按住说话键说的话,会上直接开口的部分见[路线图](#路线图)。
+双语记录、纪要和原始录音都存在本机。点任意一句就能从那儿回放录音,本机声纹模型会自动区分不同说话人(填了 Ling key 会填上名字),认错了随时改名或合并。会后支持补生成纪要,或导出 Markdown、Word 和 SRT 字幕。点“分享…”可以把纪要(也可以带上双语全文)发成一个链接,能设有效期和密码,链接和密码一键一起复制;上传前会先检查有没有密钥、未公开的公司信息这类敏感内容,有就先拦下。你也可以通过“文件 › 导入录音或视频…”把本地音视频快速转成双语记录。目前记录里的你只包含按住说话键说的话,会上直接开口的部分见[路线图](#路线图)。
<p align="center">
<img src="docs/records.png" width="640" alt="会议记录窗口,显示识别出的说话人名字和逐句英中双语文字记录">
diff --git a/Resources/en.lproj/Localizable.strings b/Resources/en.lproj/Localizable.strings
index 3ec93c5..eff8cbf 100644
--- a/Resources/en.lproj/Localizable.strings
+++ b/Resources/en.lproj/Localizable.strings
@@ -1331,7 +1331,6 @@
"显示说话人名字" = "Show speaker names";
"用密码保护" = "Protect with a password";
"预览卡显示摘要" = "Show the summary in link previews";
-"建议把链接和密码分两条消息发送。" = "Send the link and the password in separate messages.";
"内容将上传至 cicada.indaloop.app,拿到链接的人都能看。" = "It will be uploaded to cicada.indaloop.app. Anyone with the link can read it.";
"内容" = "Content";
"只分享纪要" = "Notes only";
@@ -1376,6 +1375,23 @@
"这场会议没有可分享的内容。" = "This meeting has nothing to share.";
"还有 %lld 处" = "And %lld more";
-/* Dock */
+/* Dock and one-click share copy */
+"更改" = "Change";
+"密码保护" = "Password";
+"无密码" = "No password";
+"1 年有效" = "Open 1 year";
+"%lld 天有效" = "Open %lld days";
+"显示名字" = "Names shown";
+"不显示名字" = "No names";
+"生成并复制" = "Create & Copy";
+"1 年内有效" = "valid for 1 year";
+"%lld 天内有效" = "valid for %lld days";
+"「%@」会议记录" = "Meeting record: %@";
+"链接和密码已复制" = "Link and password copied";
+"只复制链接" = "Copy link only";
+"只复制密码" = "Copy password only";
+"密码:%@(%@)" = "Password: %1$@ (%2$@)";
"在 Dock 中显示" = "Show in Dock";
"关掉后只在菜单栏,打开窗口时才出现" = "Off: menu bar only, in the Dock just while a window is open";
+"密码:%@" = "Password: %@";
+"复制" = "Copy";
diff --git a/Resources/ja.lproj/Localizable.strings b/Resources/ja.lproj/Localizable.strings
index b77a69b..f83d1e0 100644
--- a/Resources/ja.lproj/Localizable.strings
+++ b/Resources/ja.lproj/Localizable.strings
@@ -1331,7 +1331,6 @@
"显示说话人名字" = "話者名を表示";
"用密码保护" = "パスワードで保護";
"预览卡显示摘要" = "リンクプレビューに要約を表示";
-"建议把链接和密码分两条消息发送。" = "リンクとパスワードは別々のメッセージで送ってください。";
"内容将上传至 cicada.indaloop.app,拿到链接的人都能看。" = "cicada.indaloop.app にアップロードされ、リンクを知っている人は誰でも読めます。";
"内容" = "内容";
"只分享纪要" = "議事録のみ";
@@ -1376,6 +1375,23 @@
"这场会议没有可分享的内容。" = "この会議には共有できる内容がありません。";
"还有 %lld 处" = "ほか %lld か所";
-/* Dock */
+/* Dock and one-click share copy */
+"更改" = "変更";
+"密码保护" = "パスワードあり";
+"无密码" = "パスワードなし";
+"1 年有效" = "1 年間有効";
+"%lld 天有效" = "%lld 日間有効";
+"显示名字" = "名前を表示";
+"不显示名字" = "名前を隠す";
+"生成并复制" = "作成してコピー";
+"1 年内有效" = "1 年間有効";
+"%lld 天内有效" = "%lld 日間有効";
+"「%@」会议记录" = "会議記録:%@";
+"链接和密码已复制" = "リンクとパスワードをコピーしました";
+"只复制链接" = "リンクだけコピー";
+"只复制密码" = "パスワードだけコピー";
+"密码:%@(%@)" = "パスワード:%1$@(%2$@)";
"在 Dock 中显示" = "Dock に表示";
"关掉后只在菜单栏,打开窗口时才出现" = "オフ:メニューバーのみ。ウインドウを開いている間だけ Dock に表示";
+"密码:%@" = "パスワード:%@";
+"复制" = "コピー";
diff --git a/Resources/ko.lproj/Localizable.strings b/Resources/ko.lproj/Localizable.strings
index 03d6908..cde023b 100644
--- a/Resources/ko.lproj/Localizable.strings
+++ b/Resources/ko.lproj/Localizable.strings
@@ -1331,7 +1331,6 @@
"显示说话人名字" = "화자 이름 표시";
"用密码保护" = "비밀번호로 보호";
"预览卡显示摘要" = "링크 미리보기에 요약 표시";
-"建议把链接和密码分两条消息发送。" = "링크와 비밀번호는 따로 보내세요.";
"内容将上传至 cicada.indaloop.app,拿到链接的人都能看。" = "cicada.indaloop.app에 업로드되며 링크가 있는 사람은 누구나 볼 수 있습니다.";
"内容" = "내용";
"只分享纪要" = "회의록만";
@@ -1376,6 +1375,23 @@
"这场会议没有可分享的内容。" = "이 회의에는 공유할 내용이 없습니다.";
"还有 %lld 处" = "외 %lld곳";
-/* Dock */
+/* Dock and one-click share copy */
+"更改" = "변경";
+"密码保护" = "비밀번호 보호";
+"无密码" = "비밀번호 없음";
+"1 年有效" = "1년간 유효";
+"%lld 天有效" = "%lld일간 유효";
+"显示名字" = "이름 표시";
+"不显示名字" = "이름 숨김";
+"生成并复制" = "만들고 복사";
+"1 年内有效" = "1년간 유효";
+"%lld 天内有效" = "%lld일간 유효";
+"「%@」会议记录" = "회의 기록: %@";
+"链接和密码已复制" = "링크와 비밀번호를 복사했습니다";
+"只复制链接" = "링크만 복사";
+"只复制密码" = "비밀번호만 복사";
+"密码:%@(%@)" = "비밀번호: %1$@ (%2$@)";
"在 Dock 中显示" = "Dock에 표시";
"关掉后只在菜单栏,打开窗口时才出现" = "끄면 메뉴 막대에만 있고, 창을 열 때만 Dock에 나타납니다";
+"密码:%@" = "비밀번호: %@";
+"复制" = "복사";
diff --git a/Sources/Cicada/ShareViews.swift b/Sources/Cicada/ShareViews.swift
index ee30c17..06658cd 100644
--- a/Sources/Cicada/ShareViews.swift
+++ b/Sources/Cicada/ShareViews.swift
@@ -23,6 +23,7 @@ struct ShareSheet: View {
@State private var views: Int?
@State private var confirmRevoke = false
@State private var copied: String?
+ @State private var showOptions = false
private var hasNotes: Bool { !(session.notes?.isEmpty ?? true) }
@@ -57,6 +58,36 @@ struct ShareSheet: View {
}
.pickerStyle(.radioGroup).labelsHidden()
}
+ if showOptions { options } else {
+ // The choices already made, in one line; 更改 opens them.
+ HStack(spacing: 8) {
+ Text(summary).font(.system(size: 13)).foregroundStyle(Palette.secondary).lineLimit(1)
+ Spacer()
+ Button("更改") { showOptions = true }.controlSize(.small)
+ }
+ }
+ if !usePassword {
+ Text("内容将上传至 cicada.indaloop.app,拿到链接的人都能看。")
+ .font(.system(size: 12)).foregroundStyle(Palette.tertiary).fixedSize(horizontal: false, vertical: true)
+ }
+ HStack {
+ Spacer()
+ Button("取消", action: onClose).keyboardShortcut(.cancelAction)
+ Button("生成并复制") { go() }.keyboardShortcut(.defaultAction)
+ .disabled(usePassword && password.count < 6)
+ }
+ }
+ }
+
+ private var options: some View {
+ VStack(alignment: .leading, spacing: 10) {
+ row(L("用密码保护")) { Toggle("", isOn: $usePassword).toggleStyle(.switch).controlSize(.small).labelsHidden() }
+ if usePassword {
+ HStack(spacing: 8) {
+ TextField("", text: $password).textFieldStyle(.roundedBorder).font(.system(size: 13, design: .monospaced))
+ Button("换一个") { password = SharePassword.make() }.controlSize(.small)
+ }
+ }
row(L("有效期")) {
Picker("", selection: $days) {
Text("7 天").tag(7)
@@ -66,26 +97,18 @@ struct ShareSheet: View {
.labelsHidden().fixedSize()
}
row(L("显示说话人名字")) { Toggle("", isOn: $names).toggleStyle(.switch).controlSize(.small).labelsHidden() }
- row(L("用密码保护")) { Toggle("", isOn: $usePassword).toggleStyle(.switch).controlSize(.small).labelsHidden() }
- if usePassword {
- HStack(spacing: 8) {
- TextField("", text: $password).textFieldStyle(.roundedBorder).font(.system(size: 13, design: .monospaced))
- Button("换一个") { password = SharePassword.make() }.controlSize(.small)
- }
- } else if hasNotes {
+ if !usePassword, hasNotes {
row(L("预览卡显示摘要")) { Toggle("", isOn: $summaryInPreview).toggleStyle(.switch).controlSize(.small).labelsHidden() }
}
- Text(usePassword ? L("建议把链接和密码分两条消息发送。") : L("内容将上传至 cicada.indaloop.app,拿到链接的人都能看。"))
- .font(.system(size: 12)).foregroundStyle(Palette.tertiary).fixedSize(horizontal: false, vertical: true)
- HStack {
- Spacer()
- Button("取消", action: onClose).keyboardShortcut(.cancelAction)
- Button("生成链接") { go() }.keyboardShortcut(.defaultAction)
- .disabled(usePassword && password.count < 6)
- }
}
}
+ private var summary: String {
+ [usePassword ? L("密码保护") : L("无密码"),
+ days == 365 ? L("1 年有效") : L("\(days) 天有效"),
+ names ? L("显示名字") : L("不显示名字")].joined(separator: " · ")
+ }
+
private func go() {
step = .working
var o = ShareClient.Options()
@@ -99,7 +122,7 @@ struct ShareSheet: View {
Task {
switch await ShareClient.shared.share(session, o) {
case .shared(let r):
- copy(r.url, as: "link")
+ copy(Self.clipboardText(r, title: session.displayTitle), as: "all")
step = .done(r)
views = 0
case .blocked(let hits, let kept): step = .blocked(hits, kept: kept)
@@ -201,23 +224,18 @@ struct ShareSheet: View {
private func done(_ r: ShareRecord) -> some View {
VStack(alignment: .leading, spacing: 14) {
- header(copied == "link" ? L("链接已复制") : L("已分享"), session.displayTitle)
+ header(copied == "all" ? (r.password == nil ? L("链接已复制") : L("链接和密码已复制")) : L("已分享"),
+ session.displayTitle)
HStack(spacing: 8) {
- Text(r.url).font(.system(size: 12, design: .monospaced)).lineLimit(1).truncationMode(.middle)
- .textSelection(.enabled)
- .padding(.horizontal, 8).padding(.vertical, 6)
- .frame(maxWidth: .infinity, alignment: .leading)
- .background(RoundedRectangle(cornerRadius: 6).fill(Palette.fill))
- Button(copied == "link" ? L("已复制") : L("复制链接")) { copy(r.url, as: "link") }
- }
- if let pw = r.password {
- HStack(spacing: 8) {
- Text(pw).font(.system(size: 12, design: .monospaced)).textSelection(.enabled)
- .padding(.horizontal, 8).padding(.vertical, 6)
- .frame(maxWidth: .infinity, alignment: .leading)
- .background(RoundedRectangle(cornerRadius: 6).fill(Palette.fill))
- Button(copied == "password" ? L("已复制") : L("复制密码")) { copy(pw, as: "password") }
+ VStack(alignment: .leading, spacing: 4) {
+ Text(r.url).lineLimit(1).truncationMode(.middle)
+ if let pw = r.password { Text(L("密码:\(pw)")).foregroundStyle(Palette.secondary) }
}
+ .font(.system(size: 12, design: .monospaced)).textSelection(.enabled)
+ .padding(.horizontal, 8).padding(.vertical, 6)
+ .frame(maxWidth: .infinity, alignment: .leading)
+ .background(RoundedRectangle(cornerRadius: 6).fill(Palette.fill))
+ copyButton(r).fixedSize()
}
Text(status(r)).font(.system(size: 12)).foregroundStyle(Palette.secondary)
Divider()
@@ -247,6 +265,29 @@ struct ShareSheet: View {
}
}
+ /// 复制 puts the link and the password on the clipboard as one message; its arrow copies either alone,
+ /// for whoever sends them apart.
+ @ViewBuilder private func copyButton(_ r: ShareRecord) -> some View {
+ let title = copied == nil ? L("复制") : L("已复制")
+ if let pw = r.password {
+ Menu(title) {
+ Button("只复制链接") { copy(r.url, as: "link") }
+ Button("只复制密码") { copy(pw, as: "password") }
+ } primaryAction: { copy(Self.clipboardText(r, title: session.displayTitle), as: "all") }
+ } else {
+ Button(title) { copy(Self.clipboardText(r, title: session.displayTitle), as: "all") }
+ }
+ }
+
+ /// What 复制链接和密码 puts on the clipboard, in the UI's language: the title, the link on a line
+ /// of its own (chat apps then make it a link), the password and how long it stays open.
+ static func clipboardText(_ r: ShareRecord, title: String) -> String {
+ let left = max(1, Int(ceil(r.expiresAt.timeIntervalSinceNow / 86400)))
+ let valid = left >= 365 ? L("1 年内有效") : L("\(left) 天内有效")
+ let last = r.password.map { L("密码:\($0)(\(valid))") } ?? valid
+ return [L("「\(title)」会议记录"), r.url, last].joined(separator: "\n")
+ }
+
private func status(_ r: ShareRecord) -> String {
let left = max(1, Int(ceil(r.expiresAt.timeIntervalSinceNow / 86400)))
let expiry = L("\(left) 天后失效")
diff --git a/site/changelog.json b/site/changelog.json
index db187d9..2e17ee0 100644
--- a/site/changelog.json
+++ b/site/changelog.json
@@ -3,7 +3,7 @@
"version": "1.7.0",
"date": null,
"title": "Dock 里找得到知了,分享一键复制",
- "summary": "知了开着就在 Dock 里,录音时带橙点。",
+ "summary": "知了开着就在 Dock 里,录音时带橙点;分享会议时链接和密码一起复制。",
"image": null,
"items": [
{
@@ -13,6 +13,14 @@
],
"title": "开着就在 Dock 里,录音时图标带一个橙点。",
"text": "以前只有打开主窗口或设置时 Dock 里才有知了,开会时找不到它。现在知了开着就在 Dock 里,正在记录时图标右上角有个橙点;右键图标可以开始或停止记录、打开实时纪要、会议记录和设置。只想要菜单栏的话,在“设置 › 通用”里关掉“在 Dock 中显示”。"
+ },
+ {
+ "kind": "improved",
+ "platforms": [
+ "mac"
+ ],
+ "title": "分享时一键复制链接和密码。",
+ "text": "生成链接后,链接和密码按界面语言拼成一条消息自动复制好,直接粘贴到聊天里就行;想分两条发,点“复制”旁的箭头只复制链接或只复制密码。分享设置也收成一行摘要,点“更改”才展开密码、有效期和名字。"
}
]
},