知了 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
import AppKit
@MainActor
enum AboutPanel {
static let website = URL(string: "https://cicada.indaloop.app/")!
static let issues = UpdateChecker.repository.appendingPathComponent("issues/new")
static func show() {
NSApp.activate()
NSApp.orderFrontStandardAboutPanel(options: [.credits: credits])
}
private static var credits: NSAttributedString {
let centered = NSMutableParagraphStyle()
centered.alignment = .center
centered.paragraphSpacing = 6
let plain: [NSAttributedString.Key: Any] = [
.font: NSFont.systemFont(ofSize: 11), .foregroundColor: NSColor.labelColor, .paragraphStyle: centered,
]
let text = NSMutableAttributedString(string: L("把 Mac 正在播放的声音变成实时双语字幕和会议纪要") + "\n", attributes: plain)
let links = [(L("网站"), website), ("GitHub", UpdateChecker.repository), (L("反馈问题"), issues)]
for (i, (title, url)) in links.enumerated() {
if i > 0 { text.append(NSAttributedString(string: " · ", attributes: plain)) }
var linked = plain
linked[.link] = url
text.append(NSAttributedString(string: title, attributes: linked))
}
var note = plain
note[.foregroundColor] = NSColor.secondaryLabelColor
note[.font] = NSFont.systemFont(ofSize: 10)
text.append(NSAttributedString(string: "\n" + L("声纹模型:WeSpeaker ResNet34-LM(VoxCeleb),CC BY 4.0"), attributes: note))
if let dev = DevBuild.label {
var secondary = plain
secondary[.foregroundColor] = NSColor.secondaryLabelColor
text.append(NSAttributedString(string: "\nDEV · \(dev)", attributes: secondary))
}
return text
}
}