知了 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
docs: add screenshots to the READMEs, let release.sh tag a version already in Info.plist
wqugurucc4d70f9280b
diff --git a/AGENTS.md b/AGENTS.mdindex e8b50dc..37ea780 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -6,7 +6,7 @@ Live Subs is a macOS menu bar app that turns whatever the Mac is playing (stream- Three surfaces, nothing more: the **menu bar panel** (on/off, heard language, translate-to language, "我说话也翻译", subtitle bar display mode, meeting records, quit), the **subtitle bar** on screen, and the **main window** (meeting records + a small settings sheet). First launch shows a three-step **onboarding** window (permissions, try the sample video, speaking).- Listening: system audio (Core Audio process tap, our own process excluded) → spoken-language detection across installed on-device models → on-device transcription (`SpeechAnalyzer` / `SpeechTranscriber`) → translation (Google endpoint) → subtitle bar. Every confirmed sentence goes into the live meeting record.-- Language detection compares confidence: the same 3–6 s clip after a pause is transcribed by every installed model; a winner needs confidence ≥ 0.6 and a 0.08 lead; the first detection or a 0.35 lead switches at once, otherwise two agreeing detections. After a switch the last 8 s are replayed into the new model.+- Language detection compares confidence: the same 3–6 s clip after a pause is transcribed by every installed model; a winner needs confidence ≥ 0.6 and a 0.08 lead; the first detection or a 0.30 lead switches at once, otherwise two agreeing detections. After a switch the last 8 s are replayed into the new model.- "Follow system" translates into the first system language that differs from the source language.- Subtitle bar: shows only while someone talks (auto) or always; tucks into a dot after 2/4/8 s of quiet; fades to 15% and stays click-through while the pointer passes over it; editable after the pointer rests 0.6 s (drag to move, drag the corner to scale, double-click resets); ⌃⌥S hides/shows. Position, width and size are remembered per display.- Speaking: hold ⌥ Space → microphone → one `SpeechAnalyzer` per press, finished with `finalizeAndFinishThroughEndOfInput` → translate into the room's language → system voice → the chosen output device (a virtual microphone). The virtual microphone is BlackHole 2ch, installed from the app: download the official notarized package, check its pinned SHA-256, run `installer` through the standard administrator prompt. We never bundle the GPL driver.diff --git a/CHANGELOG.md b/CHANGELOG.mdindex ff54159..6fbc56a 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -10,3 +10,6 @@ the release workflow publishes it as the release notes.- New: hold ⌥ Space to speak; your words are translated and spoken into a virtual microphone, installed from the app.- New: the subtitle bar shows up only while someone talks, tucks away into a dot, turns see-through when the pointer passes; ⌃⌥S shows or hides it.- Improved: on-device recognition with macOS 26 SpeechAnalyzer (no audio leaves the Mac), new icon, DMG installer.+- Improved: the subtitle bar is only as tall as the translation needs.+- Fixed: after a language switch the start of the sentence was sometimes lost.+- Fixed: when translation fails, your untranslated words are no longer spoken into the room.diff --git a/README.md b/README.mdindex 9749b00..8634b34 100644--- a/README.md+++ b/README.md@@ -18,6 +18,10 @@<img src="https://img.shields.io/badge/Swift-5-orange" alt="Swift 5"></p>+<p align="center">+ <img src="docs/hero.jpg" width="880" alt="A livestream in English with Live Subs showing the Chinese translation in a subtitle bar">+</p>+<p align="center"><a href="README.md">English</a> · <a href="README.zh-CN.md">简体中文</a></p>---@@ -33,6 +37,16 @@ Live Subs listens to what your Mac is playing — a livestream, a video, a meeti- **Meeting records** — every session is saved as a bilingual transcript (with the audio, on your Mac only) and exports to Markdown, Word or SRT.- **Private by design** — audio capture, language detection and speech recognition all run on-device.+<p align="center">+ <img src="docs/panel.png" width="300" alt="The menu bar panel">+ + <img src="docs/meetings.png" width="520" alt="A meeting record with each line in the original language and in translation">+</p>++<p align="center">+ <img src="docs/onboarding.png" width="520" alt="First-run guide playing the built-in sample with live subtitles">+</p>+## Requirements- macOS 26 on Apple silicondiff --git a/README.zh-CN.md b/README.zh-CN.mdindex 7be0112..9762a9f 100644--- a/README.zh-CN.md+++ b/README.zh-CN.md@@ -18,6 +18,10 @@<img src="https://img.shields.io/badge/Swift-5-orange" alt="Swift 5"></p>+<p align="center">+ <img src="docs/hero.jpg" width="880" alt="英文直播画面上,Live Subs 的字幕条显示中文翻译">+</p>+<p align="center"><a href="README.md">English</a> · <a href="README.zh-CN.md">简体中文</a></p>---@@ -37,6 +41,16 @@ Live Subs 听电脑里正在播放的声音,比如直播、视频、会议或- **会议记录**:每场会议都自动存成双语稿子(录音只存在本机),可以导出 Markdown、Word 或 SRT。- **隐私**:声音采集、语言识别、语音识别都在本机完成。+<p align="center">+ <img src="docs/panel.png" width="300" alt="菜单栏面板">+ + <img src="docs/meetings.png" width="520" alt="会议记录:每句话都有原文和译文">+</p>++<p align="center">+ <img src="docs/onboarding.png" width="520" alt="首次引导:播放内置示例,字幕实时出现">+</p>+## 系统要求- macOS 26,Apple 芯片diff --git a/docs/hero.jpg b/docs/hero.jpgnew file mode 100644index 0000000..35dc986Binary files /dev/null and b/docs/hero.jpg differdiff --git a/docs/meetings.png b/docs/meetings.pngnew file mode 100644index 0000000..23e72ebBinary files /dev/null and b/docs/meetings.png differdiff --git a/docs/onboarding.png b/docs/onboarding.pngnew file mode 100644index 0000000..5e974f3Binary files /dev/null and b/docs/onboarding.png differdiff --git a/docs/panel.png b/docs/panel.pngnew file mode 100644index 0000000..79304d6Binary files /dev/null and b/docs/panel.png differdiff --git a/scripts/release.sh b/scripts/release.shindex 05c0b8e..9ba979e 100755--- a/scripts/release.sh+++ b/scripts/release.sh@@ -13,8 +13,11 @@ git rev-parse "v$VERSION" >/dev/null 2>&1 && { echo "tag v$VERSION already existgrep -q "^## $VERSION — $(date +%Y-%m-%d)" CHANGELOG.md \|| { echo "add \"## $VERSION — $(date +%Y-%m-%d)\" to CHANGELOG.md first" >&2; exit 1; }-/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString $VERSION" Resources/Info.plist-git commit -m "Release v$VERSION" Resources/Info.plist+CURRENT=$(/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" Resources/Info.plist)+if [[ "$CURRENT" != "$VERSION" ]]; then+ /usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString $VERSION" Resources/Info.plist+ git commit -m "Release v$VERSION" Resources/Info.plist+figit tag -a "v$VERSION" -m "Live Subs $VERSION"git push origin main "v$VERSION"echo "Pushed v$VERSION; follow it at https://github.com/wquguru/live-subs/actions/workflows/release.yml"