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.

docs: list the models each feature uses and how to set up a Ling key

wqugurub47cc8b4c012
diff --git a/README.md b/README.md
index 9e2731e..dd88652 100644
--- a/README.md
+++ b/README.md
@@ -69,7 +69,31 @@ Audio capture, language detection, speech recognition (Apple SpeechAnalyzer) and
Subtitles, translation, meeting records and push-to-talk interpreting work out of the box without any API key (translation uses Google and falls back to Apple on-device translation).
-Live meeting notes, higher-accuracy translation, one-step voice translation and voice cloning use your own [Ling API key](https://chat.ant-ling.com/open) (Ant Group's LLM service at `ant-ling.com`). Paste the key in **Settings › AI 服务** or directly inside the notes window. It is saved on your Mac in a file only your user account can read and is excluded from backups. Notes only send recognized text, and an hour of live meeting notes costs roughly ¥0.15 to ¥1 at current Ling pricing.
+Live meeting notes, higher-accuracy translation, one-step voice translation and voice cloning use your own Ling API key (Ant Group's model service at `ant-ling.com`, see [below](#ling-api-key)). The key is saved on your Mac in a file only your user account can read and is excluded from backups. Notes only send recognized text, and an hour of live meeting notes costs roughly ¥0.15 to ¥1 at current Ling pricing.
+
+## Models
+
+Without a Ling key, everything runs on Apple's on-device models plus Google Translate. With a key, Ling and Ming models take over the parts below, and the app falls back down the chain on any failure.
+
+| Feature | With a Ling key | Without a key / fallback |
+|---|---|---|
+| Speech recognition and language detection | Apple `SpeechAnalyzer` / `SpeechTranscriber` (on device) | same |
+| Translating finished sentences | Ling `Ling-3.1-flash` (or `Ling-3.0-flash`, set in Settings › AI Service) | Google Translate → Apple `Translation` (on device) |
+| Translating the sentence still being spoken | Google Translate (saves Ling's rate limit) | Apple `Translation` (on device) |
+| Live notes and the final version | Ling `Ling-3.1-flash` (same setting) | not available |
+| Checking the key | Ling `Ling-3.0-tiny` (one token) | — |
+| Interpreting: hearing and translating what you say | Ming `Ming-3.0-audio-flash`, one step | Apple on-device transcript, then the translation chain above |
+| Interpreting: the voice the room hears, voice cloning | Ming `Ming-3.0-tts-0.5B` | macOS system voices (`AVSpeechSynthesizer`); no cloning |
+
+<a id="ling-api-key"></a>
+## Setting up a Ling API key
+
+1. Sign up or log in on the [Ling open platform](https://chat.ant-ling.com/platform/api).
+2. Click **创建令牌** (create token) and copy the key that starts with `sk-`.
+3. In Cicada, open **Settings › AI Service**, paste the key and click **Save and check** (or paste it in the prompt at the top of the notes window). A one-token request confirms it works.
+4. Optionally pick the model (`Ling-3.1-flash` by default) on the same page, and the Ming voice for each language under **Settings › Interpreting**.
+
+To remove the key, click **Remove** on the same page.
## Requirements & Installation
@@ -87,7 +111,7 @@ The app is in English or Chinese, following your macOS language (Settings › Ge
1. Play any video, livestream or call. The live notes window opens by default, and pressing `⌃⌥S` switches between the notes window, the subtitle bar and hidden.
2. Click the Cicada icon in the menu bar to change the spoken language (auto by default), the target translation language, or the display mode.
-3. To use live notes, paste your [Ling API key](https://chat.ant-ling.com/open) in **Settings › AI 服务** or in the notes window prompt.
+3. To use live notes, paste your [Ling API key](https://chat.ant-ling.com/platform/api) in **Settings › AI Service** or in the notes window prompt.
4. To speak back in another language, turn on **Interpreting** in the menu bar panel, set your meeting app's microphone to **BlackHole 2ch**, and hold the right `⌥` key while speaking (macOS will ask for Input Monitoring permission the first time).
5. Open **会议记录** from the menu bar panel to search past transcripts (`⌘F`), generate notes for older sessions, or export to Markdown, Word or SRT.
diff --git a/README.zh-CN.md b/README.zh-CN.md
index 14bb3d4..f33602b 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -69,7 +69,30 @@
不填 API key 的情况下,实时字幕、翻译、会议记录和同声传译都能正常用,此时翻译默认走 Google,连不上时退回 Apple 本机翻译。
-实时纪要、更准确的翻译、一步语音翻译和声音克隆需要用到你自己的 [Ling API key](https://chat.ant-ling.com/open)(官网 `ant-ling.com`)。在设置里的 AI 服务页面或者直接在纪要窗口里填入即可,这个 key 只存在本机一个只有当前系统账户能读的文件里,不会进入备份。生成纪要只发送识别出的文字,按目前的价格,开一小时会大约花 0.15 到 1 元人民币。
+实时纪要、更准确的翻译、一步语音翻译和声音克隆需要用到你自己的 Ling API key(蚂蚁集团的大模型服务,官网 `ant-ling.com`,配置方法见[下文](#配置-ling-api-key))。这个 key 只存在本机一个只有当前系统账户能读的文件里,不会进入备份。生成纪要只发送识别出的文字,按目前的价格,开一小时会大约花 0.15 到 1 元人民币。
+
+## 用到的模型
+
+不填 Ling key 时,全部由 Apple 本机模型加 Google 翻译完成。填了 key 后,下表中的部分改由 Ling 和 Ming 模型负责,任何一步失败都会自动退回下一级。
+
+| 功能 | 填了 Ling key | 不填 key / 退回 |
+|---|---|---|
+| 语音识别、语言识别 | Apple `SpeechAnalyzer` / `SpeechTranscriber`(本机) | 同左 |
+| 整句翻译 | Ling `Ling-3.1-flash`(可在“设置 › AI 服务”改为 `Ling-3.0-flash`) | Google 翻译 → Apple `Translation`(本机) |
+| 正在说的半句话的翻译 | Google 翻译(不占 Ling 的频率额度) | Apple `Translation`(本机) |
+| 实时纪要、会后完整版 | Ling `Ling-3.1-flash`(同上设置) | 不可用 |
+| 检查 key 是否有效 | Ling `Ling-3.0-tiny`(只用一个 token) | — |
+| 同声传译:听懂并翻译你说的话 | Ming `Ming-3.0-audio-flash`,一步完成 | Apple 本机识别,再走上面的翻译链 |
+| 同声传译:对方听到的声音、声音克隆 | Ming `Ming-3.0-tts-0.5B` | Mac 自带语音(`AVSpeechSynthesizer`),不能克隆 |
+
+## 配置 Ling API key
+
+1. 打开 [Ling 开放平台](https://chat.ant-ling.com/platform/api),注册或登录。
+2. 点“创建令牌”,复制以 `sk-` 开头的那串 key。
+3. 在知了里打开“设置 › AI 服务”,粘贴后点“保存并检查”(也可以直接粘贴到纪要窗口顶部的提示框里)。知了会发一个只用一个 token 的请求确认 key 可用。
+4. 同一页面可以选模型(默认 `Ling-3.1-flash`),每种语言用哪个 Ming 声音在“设置 › 同声传译”里选。
+
+想移除 key,在同一页面点“移除”即可。
## 系统要求与安装
@@ -87,7 +110,7 @@
1. 放任何有声音的视频、直播或会议,默认会弹出实时纪要窗口。随时按 `⌃⌥S` 可以在实时纪要窗口、字幕条和不显示之间切换(快捷键可在设置里改)。
2. 点菜单栏上的知了图标,可以调整听到的语言(默认自动识别)、翻译成的语言以及显示方式。
-3. 想用实时纪要的话,去 [Ling 开放平台](https://chat.ant-ling.com/open) 申请一个 API key,填进“设置 › AI 服务”或纪要窗口的提示框里。
+3. 想用实时纪要的话,去 [Ling 开放平台](https://chat.ant-ling.com/platform/api) 申请一个 API key,填进“设置 › AI 服务”或纪要窗口的提示框里。
4. 想用同声传译跟对方说话,在菜单栏面板里打开同声传译,去会议软件里把麦克风设备选成 BlackHole 2ch,然后按住右边的 `⌥` 键开口(第一次按会提示开启系统的“输入监控”权限)。
5. 点面板里的“会议记录”可以翻看以前的纪要和双语文字记录,支持 `⌘F` 搜索、补生成纪要,或者导出成 Markdown、Word 和 SRT 字幕。
diff --git a/Sources/LiveSubs/AISettings.swift b/Sources/LiveSubs/AISettings.swift
index 71a7752..2c4f393 100644
--- a/Sources/LiveSubs/AISettings.swift
+++ b/Sources/LiveSubs/AISettings.swift
@@ -74,7 +74,7 @@ struct AISettingsView: View {
if editing { SoftButton(L("取消")) { editing = false } }
}
Button("打开 Ling 开放平台 ↗") {
- if let url = URL(string: "https://chat.ant-ling.com/open") { NSWorkspace.shared.open(url) }
+ if let url = URL(string: "https://chat.ant-ling.com/platform/api") { NSWorkspace.shared.open(url) }
}
.buttonStyle(.plain).font(.system(size: 12)).foregroundStyle(Palette.secondary)
}
diff --git a/Sources/LiveSubs/NotesWindow.swift b/Sources/LiveSubs/NotesWindow.swift
index 9b27eb5..c6cf506 100644
--- a/Sources/LiveSubs/NotesWindow.swift
+++ b/Sources/LiveSubs/NotesWindow.swift
@@ -552,7 +552,7 @@ struct NotesWindowView: View {
SoftButton(L("保存并开始"), dark: true, action: saveKey)
}
Button("获取 Ling key ↗") {
- if let url = URL(string: "https://chat.ant-ling.com/open") { NSWorkspace.shared.open(url) }
+ if let url = URL(string: "https://chat.ant-ling.com/platform/api") { NSWorkspace.shared.open(url) }
}
.buttonStyle(.plain).font(.system(size: 12)).foregroundStyle(Palette.secondary)
}