知了 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
feat: show a two-person meeting with sound and a fishbone in the website's demo
wquguru801480bc2c29
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 469ebf1..3afabbf 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -14,6 +14,7 @@ the release workflow publishes it as the release notes.- Fixed: in English, the menu bar panel cut off its status ("English (detecting…) → …") and the interpreting languages, and Settings › 同声传译 left "· Change" alone on a second line. The panel now wraps the status and puts the languages on their own line when they don't fit.- Fixed: while you hold the talk key and speak Chinese, the subtitle bar shows your words as you say them, about a second behind. It used to show nothing for roughly ten seconds, so a short sentence only appeared after the key was released.- Changed: the website says who makes Cicada and why the first launch is safe to allow. Under the download button: by @wquguru, source and builds public on GitHub. On the setup page, the first-open card says Cicada isn't notarized by Apple yet and lists three reasons to allow it: Apache-2.0 open source, a SHA-256 checksum for every release, and the author on X (@wquguru) for questions. The footer links to @wquguru on X and credits the author.+- Changed: the website's home page shows a two-person meeting instead of a lone speaker, the same one as the first-run sample: the subtitles and live notes follow that meeting (ship on March 3 if design signs off by Friday). The notes card shows what the notes really hold: why the launch slipped as a fishbone drawn the way the app draws it (a cause with little behind it is dashed), then the decision and the to-do with its owner; the 同声传译 card below is one line. 听一段 plays it with sound, lighting whoever is talking with their subtitle in step; the English page plays the meeting in Chinese.## 2.2.0 — 2026-11-02diff --git a/scripts/make-sample.sh b/scripts/make-sample.shindex 0e88a82..0eace35 100755--- a/scripts/make-sample.sh+++ b/scripts/make-sample.sh@@ -2,7 +2,11 @@# Builds the onboarding sample, Resources/sample/sample.m4a: a short meeting voiced by Ming with# the Ling key in Application Support. The app plays it through afplay so its own system-audio# capture hears it (the app excludes its own process). Ming's output varies a little between runs:-# after regenerating, re-measure the turns (silencedetect below) into `SamplePlayer.turns`.+# after regenerating, re-measure the turns (silencedetect below) into `SamplePlayer.turns` and the+# website's `SAMPLES["en"]` (scripts/site.py), which plays the same clip on its home page.+#+# scripts/make-sample.sh # the English meeting (app + website)+# scripts/make-sample.sh zh # the same meeting in Chinese, for the English website: site/audio/meeting-zh.m4aset -euo pipefailcd "$(dirname "$0")/.."KEY_FILE="$HOME/Library/Application Support/LiveSubs/ling-api-key"@@ -32,14 +36,23 @@ with urllib.request.urlopen(req, timeout=60) as r:open(out, "wb").write(pcm)PY}-say "$T/1.pcm" US_Emma "Okay, so where are we on the launch?"-say "$T/2.pcm" UK_George "Uh, I think we can ship March third, if design signs off by Friday."-say "$T/3.pcm" US_Emma "Great, let's lock that in."+if [ "${1:-}" = zh ]; then+ OUT=site/audio/meeting-zh.m4a+ say "$T/1.pcm" 灵小雅 "好,发布现在进展到哪了?"+ say "$T/2.pcm" 灵小锋 "嗯,我觉得三月三号能上线,只要设计周五之前确认。"+ say "$T/3.pcm" 灵小雅 "好,那就这么定了。"+else+ OUT=Resources/sample/sample.m4a+ say "$T/1.pcm" US_Emma "Okay, so where are we on the launch?"+ say "$T/2.pcm" UK_George "Uh, I think we can ship March third, if design signs off by Friday."+ say "$T/3.pcm" US_Emma "Great, let's lock that in."+fi+mkdir -p "$(dirname "$OUT")"TRIM="silenceremove=start_periods=1:start_threshold=-45dB,areverse,silenceremove=start_periods=1:start_threshold=-45dB,areverse"PCM="-f s16le -ar 24000 -ac 1"ffmpeg -y -loglevel error $PCM -i "$T/1.pcm" $PCM -i "$T/2.pcm" $PCM -i "$T/3.pcm" -filter_complex \"[0]$TRIM,adelay=250,apad=pad_dur=0.22[a];[1]$TRIM,apad=pad_dur=0.2[b];[2]$TRIM,apad=pad_dur=0.35[c];[a][b][c]concat=n=3:v=0:a=1,loudnorm=I=-16:TP=-1.5,aresample=22050" \- -c:a aac -b:a 64k Resources/sample/sample.m4a-ffmpeg -i Resources/sample/sample.m4a -af silencedetect=n=-40dB:d=0.12 -f null - 2>&1 | grep -o 'silence_[a-z]*: [0-9.]*' || true-ls -la Resources/sample/sample.m4a+ -c:a aac -b:a 64k "$OUT"+ffmpeg -i "$OUT" -af silencedetect=n=-40dB:d=0.12 -f null - 2>&1 | grep -o 'silence_[a-z]*: [0-9.]*' || true+ls -la "$OUT"diff --git a/scripts/site.py b/scripts/site.pyindex 78d1478..352b42f 100755--- a/scripts/site.py+++ b/scripts/site.py@@ -29,7 +29,16 @@ REPO = "https://github.com/wquguru/cicada"DOWNLOAD = REPO + "/releases/latest"# The author on X: the app is not notarized yet, so a real person to ask helps people trust the first launch.X = "https://x.com/wquguru"-STATIC = ["style.css", "icon.svg", "icon.png", "og.png", "img"]+STATIC = ["style.css", "icon.svg", "icon.png", "og.png", "img", "audio"]+# The home page's meeting with sound, in the language its reader listens to (the English page's is+# Chinese): file, length in seconds, and who talks when as (person, start, end), one turn per+# subtitle. Both clips come from scripts/make-sample.sh; the English one is the app's onboarding+# sample (keep its turns in step with `SamplePlayer.turns`) and is copied in at build time.+SAMPLES = {+ "en": ("audio/meeting-en.m4a", 8.8, [(0, 0.25, 2.34), (1, 2.56, 6.97), (0, 7.17, 8.45)]),+ "zh": ("audio/meeting-zh.m4a", 7.8, [(0, 0.25, 2.21), (1, 2.43, 5.89), (0, 6.09, 7.45)]),+}+SAMPLE_FOR = {"zh": "en", "ja": "en", "ko": "en", "en": "zh"}# (code, path prefix); the first is the default language, served at the root.LANGS = [("zh", ""), ("en", "en/"), ("ja", "ja/"), ("ko", "ko/")]FONT_BASE = "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Noto+Sans+SC:wght@400;500;700;900"@@ -140,6 +149,7 @@ def main():shutil.copytree(src, os.path.join(OUT, name))elif os.path.exists(src):shutil.copy2(src, OUT)+ shutil.copy2(os.path.join(ROOT_DIR, "Resources", "sample", "sample.m4a"), os.path.join(OUT, SAMPLES["en"][0]))tr = strings()urls = [] # (absolute url, last modified) for the sitemap@@ -219,7 +229,10 @@ def main():faq_ld = {"@context": "https://schema.org", "@type": "FAQPage", "inLanguage": t["html_lang"],"mainEntity": [{"@type": "Question", "name": q, "acceptedAnswer": {"@type": "Answer", "text": a}}for q, a in t["faq"]]}+ src, length, turns = SAMPLES[SAMPLE_FOR[code]]+ sample = {"src": "../" * prefix.count("/") + src + "?v=" + common["REV"], "len": length, "turns": turns}page("index.html", code, prefix, {+ "SAMPLE_JSON": json.dumps(sample), "SAMPLE_LEN": f"0:{round(length):02d}","APPS": apps, "LATEST_SECTION": latest_section,"ROAD_NEXT": road_next, "ROAD_LATER": road(t["road_later_items"]), "ROAD_NONE": road(t["road_none_items"]),"FAQ": faq, "FAQLD": json.dumps(faq_ld, ensure_ascii=False).replace("</", "<\\/"),diff --git a/site/audio/meeting-zh.m4a b/site/audio/meeting-zh.m4anew file mode 100644index 0000000..d2fe7f8Binary files /dev/null and b/site/audio/meeting-zh.m4a differdiff --git a/site/changelog.json b/site/changelog.jsonindex a3eb7bb..06b8d7d 100644--- a/site/changelog.json+++ b/site/changelog.json@@ -50,6 +50,11 @@"kind": "changed","title": "官网写明作者,也讲清楚为什么可以放行。","text": "下载按钮下方写明作者 @wquguru,源码与安装包都在 GitHub 公开。开始使用页的首次打开提示卡说明知了还没做 Apple 公证,并列出可以放行的理由:代码以 Apache-2.0 全部开源,每个版本附 SHA-256 校验值,遇到问题可以去 X 找作者。页脚也加上了作者和 X 链接。"+ },+ {+ "kind": "changed",+ "title": "官网首页换成一场双人会议,还能听声音。",+ "text": "首页的演示从一个主讲人换成和首次引导一样的双人会议,字幕和实时纪要讲的都是这场会(设计周五前确认,3 月 3 日发布)。纪要卡展示真实纪要的样子:和 App 里一样画法的鱼骨图讲清推迟原因(依据少的原因画成虚线),再是结论和带负责人的待办;同声传译卡收成一行。点“听一段”就能听到会议原声,谁在说话就亮谁,字幕跟着一句句出来;英文页播的是中文会议。"}]},diff --git a/site/i18n/en.json b/site/i18n/en.jsonindex bb537f5..91b3b2d 100644--- a/site/i18n/en.json+++ b/site/i18n/en.json@@ -36,22 +36,37 @@"send_copied": "Link copied. Open it on your Mac","send_prompt": "Copy this link and open it on your Mac:","demo_label": "Demo",- "win_title": "Any livestream · 中文",- "speaker": "Speaker",- "cap1_src": "我们下周四会把测试版发给所有人。",- "cap1_dst": "We’ll ship the beta to everyone next Thursday.",- "cap2_src": "休息结束后,主题演讲马上开始。",- "cap2_dst": "The keynote starts right after this break.",- "cap3_src": "继续之前,聊天区有什么问题吗?",- "cap3_dst": "Any questions from the chat before we move on?",+ "win_title": "Launch sync · 中文",+ "person1": "Lin",+ "person1_initial": "L",+ "person2": "Chen",+ "person2_initial": "C",+ "listen": "Listen",+ "listen_stop": "Stop",+ "cap1_src": "好,发布现在进展到哪了?",+ "cap1_dst": "Okay, so where are we on the launch?",+ "cap2_src": "嗯,我觉得三月三号能上线,只要设计周五之前确认。",+ "cap2_dst": "I think we can ship March 3, if design signs off by Friday.",+ "cap3_src": "好,那就这么定了。",+ "cap3_dst": "Great, let’s lock that in.","notes_head": "Live notes","updating": "Updating",- "note1": "<b>Decision</b> · Beta ships to everyone next Thursday",- "note2": "<b>Agenda</b> · Keynote after the break",- "note3": "<b>To-do</b> · Collect questions from the chat",- "speak_hold": "Hold <kbd>right ⌥</kbd> and speak English",- "speak_said": "“We can send feedback before Thursday.”",- "speak_heard": "They hear: “我们可以在周四之前给反馈。”",+ "n_why": "Why move to March 3?",+ "fb_kind": "Fishbone",+ "fb1": "Design",+ "fb1d": "Home page still in review",+ "fb2": "Payments",+ "fb2d": "Times out in sandbox",+ "fb3": "iOS tests",+ "fb3d": "40% still to run",+ "fb4": "JP copy",+ "fb4d": "Not proofread yet",+ "fb_hint": "Click a branch to hear what was said",+ "n_decision": "Decision",+ "n_decision_text": "Ship on March 3",+ "n_todo": "To-do",+ "n_todo_text": "Design signs off by Fri",+ "speak_hold": "Hold <kbd>right ⌥</kbd>: speak English, they hear Chinese","works": "Works in all of these, as long as your Mac plays the sound","apps": ["Zoom",diff --git a/site/i18n/ja.json b/site/i18n/ja.jsonindex 015b927..bd6de25 100644--- a/site/i18n/ja.json+++ b/site/i18n/ja.json@@ -36,22 +36,37 @@"send_copied": "リンクをコピーしました。Mac で開いてください","send_prompt": "このリンクをコピーして、Mac で開いてください:","demo_label": "デモ",- "win_title": "ライブ配信 · English",- "speaker": "スピーカー",- "cap1_src": "We’ll ship the beta to everyone next Thursday.",- "cap1_dst": "来週の木曜日に、ベータ版を全員に配布します。",- "cap2_src": "The keynote starts right after this break.",- "cap2_dst": "休憩のあと、すぐに基調講演が始まります。",- "cap3_src": "Any questions from the chat before we move on?",- "cap3_dst": "次に進む前に、チャットから質問はありますか?",+ "win_title": "Launch sync · English",+ "person1": "Emma",+ "person1_initial": "E",+ "person2": "George",+ "person2_initial": "G",+ "listen": "音声で聞く",+ "listen_stop": "停止",+ "cap1_src": "Okay, so where are we on the launch?",+ "cap1_dst": "さて、ローンチはどこまで進んでいますか?",+ "cap2_src": "Uh, I think we can ship March third, if design signs off by Friday.",+ "cap2_dst": "デザインが金曜までに承認すれば、3月3日にリリースできると思います。",+ "cap3_src": "Great, let’s lock that in.",+ "cap3_dst": "いいですね、それで決定しましょう。","notes_head": "ライブ議事メモ","updating": "更新中",- "note1": "<b>結論</b> · ベータ版は来週木曜に全員へ配布",- "note2": "<b>議題</b> · 休憩後に基調講演",- "note3": "<b>ToDo</b> · チャットの質問を整理",- "speak_hold": "<kbd>右 ⌥</kbd> を押しながら日本語で話す",- "speak_said": "「木曜日までにフィードバックを送れます。」",- "speak_heard": "相手に聞こえる:“We can send feedback before Thursday.”",+ "n_why": "なぜ3月3日に延期?",+ "fb_kind": "フィッシュボーン",+ "fb1": "デザイン",+ "fb1d": "レビュー中",+ "fb2": "決済",+ "fb2d": "時々タイムアウト",+ "fb3": "iOS 回帰",+ "fb3d": "4割が未実行",+ "fb4": "日本語文言",+ "fb4d": "未校正",+ "fb_hint": "枝をクリックで元の発言へ",+ "n_decision": "結論",+ "n_decision_text": "3月3日にリリース",+ "n_todo": "ToDo",+ "n_todo_text": "金曜までにデザイン承認",+ "speak_hold": "<kbd>右 ⌥</kbd> で日本語で話すと、相手には英語で","works": "Mac で音が出るアプリなら、どれでも使えます","apps": ["Zoom",diff --git a/site/i18n/ko.json b/site/i18n/ko.jsonindex 4f976ae..394dfbb 100644--- a/site/i18n/ko.json+++ b/site/i18n/ko.json@@ -36,22 +36,37 @@"send_copied": "링크를 복사했습니다. Mac에서 여세요","send_prompt": "이 링크를 복사해 Mac에서 여세요:","demo_label": "데모",- "win_title": "라이브 방송 · English",- "speaker": "발표자",- "cap1_src": "We’ll ship the beta to everyone next Thursday.",- "cap1_dst": "다음 주 목요일에 모두에게 베타 버전을 배포합니다.",- "cap2_src": "The keynote starts right after this break.",- "cap2_dst": "휴식이 끝나면 바로 기조연설이 시작됩니다.",- "cap3_src": "Any questions from the chat before we move on?",- "cap3_dst": "넘어가기 전에 채팅에 질문 있으신가요?",+ "win_title": "Launch sync · English",+ "person1": "Emma",+ "person1_initial": "E",+ "person2": "George",+ "person2_initial": "G",+ "listen": "소리로 듣기",+ "listen_stop": "정지",+ "cap1_src": "Okay, so where are we on the launch?",+ "cap1_dst": "그럼 출시는 어디까지 진행됐나요?",+ "cap2_src": "Uh, I think we can ship March third, if design signs off by Friday.",+ "cap2_dst": "디자인이 금요일까지 승인하면 3월 3일에 출시할 수 있을 것 같아요.",+ "cap3_src": "Great, let’s lock that in.",+ "cap3_dst": "좋아요, 그걸로 확정하죠.","notes_head": "실시간 회의록","updating": "업데이트 중",- "note1": "<b>결론</b> · 베타 버전은 다음 주 목요일 전체 배포",- "note2": "<b>안건</b> · 휴식 후 기조연설",- "note3": "<b>할 일</b> · 채팅 질문 정리",- "speak_hold": "<kbd>오른쪽 ⌥</kbd>를 누른 채 한국어로 말하기",- "speak_said": "“목요일 전까지 피드백을 드릴 수 있어요.”",- "speak_heard": "상대가 듣는 말: “We can send feedback before Thursday.”",+ "n_why": "왜 3월 3일로 미뤘나?",+ "fb_kind": "피시본",+ "fb1": "디자인",+ "fb1d": "홈 화면 아직 검토 중",+ "fb2": "결제",+ "fb2d": "샌드박스에서 가끔 타임아웃",+ "fb3": "iOS 회귀",+ "fb3d": "아직 40% 남음",+ "fb4": "일본어 문구",+ "fb4d": "아직 교정 전",+ "fb_hint": "가지를 누르면 원래 발언으로",+ "n_decision": "결론",+ "n_decision_text": "3월 3일 출시",+ "n_todo": "할 일",+ "n_todo_text": "금요일까지 디자인 승인",+ "speak_hold": "<kbd>오른쪽 ⌥</kbd>를 누르고 한국어로 말하면 상대에겐 영어로","works": "Mac에서 소리가 나는 앱이라면 어디서든 쓸 수 있습니다","apps": ["Zoom",diff --git a/site/i18n/zh.json b/site/i18n/zh.jsonindex c8bcc57..e7a4d53 100644--- a/site/i18n/zh.json+++ b/site/i18n/zh.json@@ -36,22 +36,37 @@"send_copied": "链接已复制,到 Mac 上打开","send_prompt": "复制这个链接,到 Mac 上打开:","demo_label": "演示",- "win_title": "任意直播 · English",- "speaker": "主讲人",- "cap1_src": "We’ll ship the beta to everyone next Thursday.",- "cap1_dst": "下周四,我们会把测试版发给所有人。",- "cap2_src": "The keynote starts right after this break.",- "cap2_dst": "休息结束后,主题演讲马上开始。",- "cap3_src": "Any questions from the chat before we move on?",- "cap3_dst": "继续之前,聊天区有什么问题吗?",+ "win_title": "Launch sync · English",+ "person1": "Emma",+ "person1_initial": "E",+ "person2": "George",+ "person2_initial": "G",+ "listen": "听一段",+ "listen_stop": "停止",+ "cap1_src": "Okay, so where are we on the launch?",+ "cap1_dst": "好,发布进展到哪了?",+ "cap2_src": "Uh, I think we can ship March third, if design signs off by Friday.",+ "cap2_dst": "我觉得 3 月 3 日能发布,前提是设计周五前确认。",+ "cap3_src": "Great, let’s lock that in.",+ "cap3_dst": "好,那就这么定了。","notes_head": "实时纪要","updating": "正在更新",- "note1": "<b>结论</b> · 测试版下周四全量发布",- "note2": "<b>议程</b> · 休息后是主题演讲",- "note3": "<b>待办</b> · 整理聊天区的问题",- "speak_hold": "按住 <kbd>右 ⌥</kbd> 说中文",- "speak_said": "“我们可以在周四之前给反馈。”",- "speak_heard": "对方听到:“We can send feedback before Thursday.”",+ "n_why": "为什么推到 3 月 3 日?",+ "fb_kind": "鱼骨图",+ "fb1": "设计稿",+ "fb1d": "首页还在评审",+ "fb2": "支付回调",+ "fb2d": "沙箱里偶发超时",+ "fb3": "iOS 回归",+ "fb3d": "还剩四成没跑",+ "fb4": "日文文案",+ "fb4d": "还没校对",+ "fb_hint": "点击分支跳回原话",+ "n_decision": "结论",+ "n_decision_text": "3 月 3 日发布",+ "n_todo": "待办",+ "n_todo_text": "设计周五前确认",+ "speak_hold": "按住 <kbd>右 ⌥</kbd> 说中文,对方听到英文","works": "这些 app 里都能用,只要 Mac 能出声就行","apps": ["Zoom",diff --git a/site/index.html b/site/index.htmlindex 4a94277..909becb 100644--- a/site/index.html+++ b/site/index.html@@ -58,11 +58,14 @@<section class="wrap stage" aria-label="{{t.demo_label}}"><div class="stage-row tilt-in">- <div class="window" aria-hidden="true">- <div class="bar"><i></i><i></i><i></i><span class="title">{{t.win_title}}</span><span class="live">LIVE</span></div>- <div class="screen">- <div class="speaker"><div class="avatar"></div>{{t.speaker}}</div>- <div class="wave"><span style="height:40px"></span><span style="height:64px;animation-delay:-.3s"></span><span style="height:30px;animation-delay:-.6s"></span><span style="height:56px;animation-delay:-.15s"></span><span style="height:44px;animation-delay:-.8s"></span><span style="height:60px;animation-delay:-.45s"></span><span style="height:34px;animation-delay:-.9s"></span></div>+ <div class="window" data-sample='{{SAMPLE_JSON}}'>+ <div class="bar"><i></i><i></i><i></i><span class="title">{{t.win_title}}</span><button class="listen" type="button" data-stop="{{t.listen_stop}}" aria-pressed="false" hidden><svg class="play" width="12" height="12" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M7 4.5v15l13-7.5z"/></svg><svg class="stop" width="12" height="12" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><rect x="6" y="6" width="12" height="12" rx="2"/></svg><span>{{t.listen}} · {{SAMPLE_LEN}}</span></button><span class="live">LIVE</span></div>+ <div class="screen" aria-hidden="true">+ <i class="progress"></i>+ <div class="tiles">+ <div class="tile"><b>{{t.person1_initial}}</b><span>{{t.person1}}</span><em><i></i><i></i><i></i></em></div>+ <div class="tile"><b>{{t.person2_initial}}</b><span>{{t.person2}}</span><em><i></i><i></i><i></i></em></div>+ </div><div class="subbar"><div class="lines"><div class="cap"><div class="en"><span class="dot"></span>{{t.cap1_src}}</div><div class="zh">{{t.cap1_dst}}</div></div><div class="cap"><div class="en"><span class="dot"></span>{{t.cap2_src}}</div><div class="zh">{{t.cap2_dst}}</div></div>@@ -73,19 +76,82 @@<div class="side"><div class="card notes"><div class="head">{{t.notes_head}}<span class="updating">{{t.updating}}</span></div>- <div class="note">{{t.note1}}</div>- <div class="note">{{t.note2}}</div>- <div class="note">{{t.note3}}</div>+ <div class="nt why">+ <div class="q"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" aria-hidden="true"><circle cx="5" cy="6" r="2.2"/><circle cx="19" cy="6" r="2.2"/><circle cx="12" cy="18" r="2.2"/><path d="M7 7.5l3.6 8.6M17 7.5l-3.6 8.6" stroke-dasharray="2 2.4"/></svg><b>{{t.n_why}}</b><span>{{t.fb_kind}}</span></div>+ <div class="bones">+ <div class="br"><b>{{t.fb1}}</b>{{t.fb1d}}</div><i></i><div class="br"><b>{{t.fb2}}</b>{{t.fb2d}}</div>+ <div class="br"><b>{{t.fb3}}</b>{{t.fb3d}}</div><i></i><div class="br weak"><b>{{t.fb4}}</b>{{t.fb4d}}</div>+ </div>+ <div class="hint">{{t.fb_hint}}</div>+ </div>+ <div class="nt items">+ <div><b>{{t.n_decision}}</b>{{t.n_decision_text}}</div>+ <div><b>{{t.n_todo}}</b>{{t.n_todo_text}}<span class="who">{{t.person2}}</span></div>+ </div></div><div class="card speak"><div class="hold">{{t.speak_hold}}</div>- <div>{{t.speak_said}}</div>- <div class="out"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" aria-hidden="true"><path d="M5 12h14"/><path d="M13 6l6 6-6 6"/></svg>{{t.speak_heard}}</div></div></div></div></section>+ <script>+ // The meeting above with its sound: only on a click. While the clip plays the speaker and the+ // subtitle follow its turns (who spoke when, measured in scripts/make-sample.sh): the original+ // comes in word by word as it is said and the translation trails it, as in the app. When the clip+ // ends the silent loop takes over again.+ (function () {+ var w = document.querySelector('.window[data-sample]'), s = JSON.parse(w.dataset.sample);+ var btn = w.querySelector('.listen'), label = btn.querySelector('span').textContent, bar = w.querySelector('.progress');+ var tiles = w.querySelectorAll('.tile'), caps = w.querySelectorAll('.cap'), audio = null, raf = 0;+ // The translation starts this many seconds after the voice and catches up as the sentence ends,+ // before the next speaker (turns are at least 0.2 s apart).+ var LAG = 0.8;+ var lines = [].map.call(caps, function (c) {+ var src = c.querySelector('.en').lastChild, dst = c.querySelector('.zh').firstChild;+ return { src: src, dst: dst, full: [src.nodeValue, dst.nodeValue] };+ });+ btn.hidden = false;+ function mark(list, i) { list.forEach(function (el, j) { el.classList.toggle('on', j === i); }); }+ // The first share p of a line: by words in English, by characters in Chinese, Japanese and Korean.+ function part(text, p) {+ var units = /^[\x00-\x7F’]*$/.test(text) ? text.split(/(?=\s)/) : Array.from(text);+ return units.slice(0, Math.ceil(units.length * Math.max(0, Math.min(1, p)))).join('');+ }+ function reveal(t) {+ s.turns.forEach(function (turn, i) {+ var l = lines[i], d = turn[2] - turn[1];+ l.src.nodeValue = t === null ? l.full[0] : part(l.full[0], (t - turn[1]) / d);+ l.dst.nodeValue = t === null ? l.full[1] : part(l.full[1], (t - turn[1] - LAG) / (d - LAG + 0.1));+ });+ }+ function frame() {+ var t = audio.currentTime, talk = -1, cap = 0;+ s.turns.forEach(function (turn, i) { if (t >= turn[1]) cap = i; if (t >= turn[1] && t < turn[2]) talk = turn[0]; });+ mark(tiles, talk); mark(caps, cap); reveal(t);+ bar.style.width = Math.min(100, t / s.len * 100) + '%';+ raf = requestAnimationFrame(frame);+ }+ function stop() {+ cancelAnimationFrame(raf);+ if (audio) { audio.pause(); audio = null; }+ w.classList.remove('playing'); mark(tiles, -1); mark(caps, -1); reveal(null);+ btn.querySelector('span').textContent = label; btn.setAttribute('aria-pressed', 'false');+ }+ btn.addEventListener('click', function () {+ if (audio) { stop(); return; }+ var a = audio = new Audio(s.src);+ // The last translation stays up a moment after the voice ends.+ a.addEventListener('ended', function () { setTimeout(function () { if (audio === a) stop(); }, 1200); });+ audio.play().then(function () {+ w.classList.add('playing'); frame();+ btn.querySelector('span').textContent = btn.dataset.stop; btn.setAttribute('aria-pressed', 'true');+ }, stop);+ });+ })();+ </script>+<section class="works" aria-labelledby="works-t"><p id="works-t">{{t.works}}</p><div class="marquee">diff --git a/site/style.css b/site/style.cssindex 79b2679..e378308 100644--- a/site/style.css+++ b/site/style.css@@ -125,20 +125,52 @@ html[lang="ko"] body { font-family: Inter, "Noto Sans KR", -apple-system, "Apple.window .bar i { width: 11px; height: 11px; border-radius: 50%; background: #3B3F48; }.window .bar .title { margin-left: 12px; font-size: 13px; color: var(--on-dark2); }.window .bar .live { margin-left: auto; padding: 2px 8px; border-radius: 6px; background: var(--orange); color: #FFFFFF; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; }-.screen { position: relative; height: 380px; display: flex; align-items: center; justify-content: center; gap: 34px; }-.speaker { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13px; color: var(--on-dark2); }-.avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--dark2); border: 3px solid var(--orange); }-.wave { display: flex; align-items: flex-end; gap: 6px; height: 64px; }-.wave span { display: block; width: 5px; border-radius: 3px; background: var(--orange); transform-origin: 50% 100%; animation: bar 1.1s ease-in-out infinite; }+.window .bar .listen {+ margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border: 0; border-radius: 999px;+ background: rgba(255,255,255,.1); color: #FFFFFF; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap;+}+.window .bar .listen:hover { background: rgba(255,255,255,.18); }+.window .bar .listen:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }+.window .bar .listen + .live { margin-left: 8px; }+.listen .stop, .playing .listen .play { display: none; } .playing .listen .stop { display: block; }+.screen { position: relative; height: 380px; }+.progress { position: absolute; top: 0; left: 0; width: 0; height: 3px; background: var(--orange); }+/* The two people in the call, above the subtitle strip so it never covers a face */+.tiles { position: absolute; top: 40px; left: 0; right: 0; display: flex; justify-content: center; gap: 18px; }+.tile {+ position: relative; width: min(260px, 42%); aspect-ratio: 16 / 10; border-radius: 14px; background: #24262D;+ border: 2px solid var(--dark2); display: flex; align-items: center; justify-content: center;+}+.tile b { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #5C6378; color: #FFFFFF; font-size: 26px; }+.tile:nth-child(2) b { background: #6B5C4F; }+.tile span { position: absolute; left: 12px; bottom: 9px; font-size: 13px; color: rgba(255,255,255,.9); }+.tile em { position: absolute; right: 12px; bottom: 11px; display: flex; align-items: flex-end; gap: 3px; height: 14px; opacity: 0; }+.tile em i { width: 3px; height: 14px; border-radius: 2px; background: var(--orange); transform-origin: 50% 100%; animation: bar .9s ease-in-out infinite; }+.tile em i:nth-child(2) { animation-delay: -.3s; } .tile em i:nth-child(3) { animation-delay: -.6s; }+/* The silent loop: whoever's line is up is talking (Emma, George, Emma) */+.tile { animation: talk-a 12s infinite both; } .tile em { animation: say-a 12s infinite both; }+.tile:nth-child(2) { animation-name: talk-b; } .tile:nth-child(2) em { animation-name: say-b; }+@keyframes talk-a { 0%, 31%, 68%, 98%, 100% { border-color: var(--dark2); } 3%, 29%, 70%, 96% { border-color: var(--orange); } }+@keyframes talk-b { 0%, 34%, 64%, 100% { border-color: var(--dark2); } 36%, 62% { border-color: var(--orange); } }+@keyframes say-a { 0%, 31%, 68%, 98%, 100% { opacity: 0; } 3%, 29%, 70%, 96% { opacity: 1; } }+@keyframes say-b { 0%, 34%, 64%, 100% { opacity: 0; } 36%, 62% { opacity: 1; } }+/* With sound: the page's script follows the clip's turns instead */+.playing .tile, .playing .tile em, .playing .cap, .playing .cap .zh { animation: none; }+.playing .tile { transition: border-color .15s; } .playing .tile.on { border-color: var(--orange); }+.playing .tile em { transition: opacity .15s; } .playing .tile.on em { opacity: 1; }+.playing .cap { opacity: 0; transition: opacity .2s; } .playing .cap.on { opacity: 1; }+.playing .cap .zh { clip-path: none; }@keyframes bar { 0%, 100% { transform: scaleY(.22); } 50% { transform: scaleY(1); } }.subbar {- position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: min(620px, 88%); height: 84px;+ position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: min(620px, 88%);padding: 14px 22px; border-radius: 16px; background: rgba(21,23,28,0.92); border: 1px solid #3B3F48;}-.subbar .lines { position: relative; height: 100%; }-.cap { position: absolute; inset: 0; opacity: 0; animation: cap 12s infinite both; }-.cap .en { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--on-dark2); white-space: nowrap; overflow: hidden; }-.cap .zh { margin-top: 6px; font-size: 22px; font-weight: 700; color: #FFFFFF; animation: wipe 12s infinite both; }+/* All lines share one grid cell, so the strip is as tall as the longest and grows upward like the app's */+.subbar .lines { display: grid; grid-template-columns: minmax(0, 1fr); }+.cap { grid-area: 1 / 1; align-self: end; opacity: 0; animation: cap 12s infinite both; }+.cap .en { display: block; font-size: 13px; color: var(--on-dark2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }+.cap .en .dot { display: inline-block; margin-right: 8px; vertical-align: 1px; }+.cap .zh { margin-top: 6px; font-size: 22px; line-height: 1.35; font-weight: 700; color: #FFFFFF; animation: wipe 12s infinite both; }.cap:nth-child(2), .cap:nth-child(2) .zh { animation-delay: 4s; }.cap:nth-child(3), .cap:nth-child(3) .zh { animation-delay: 8s; }@keyframes cap { 0% { opacity: 0; transform: translateY(10px); } 4%, 30% { opacity: 1; transform: none; } 34%, 100% { opacity: 0; transform: translateY(-8px); } }@@ -149,17 +181,36 @@ html[lang="ko"] body { font-family: Inter, "Noto Sans KR", -apple-system, "Apple.notes .head { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }.updating { margin-left: auto; padding: 3px 9px; border-radius: 999px; color: var(--orange-text); font-size: 12px; font-weight: 600; background: linear-gradient(90deg, var(--orange-soft) 0%, #FFFFFF 50%, var(--orange-soft) 100%); background-size: 200% 100%; animation: shim 2.4s linear infinite; }@keyframes shim { to { background-position: -200% 0; } }-.note { padding: 10px 12px; border-radius: 10px; background: var(--soft); font-size: 14px; line-height: 1.5; opacity: 0; animation: note 12s infinite both; }-.note:nth-of-type(2) { animation-delay: 1.6s; } .note:nth-of-type(3) { animation-delay: 5.6s; } .note:nth-of-type(4) { animation-delay: 9.6s; }+/* The notes fill in as the meeting goes: the "why" drawn as a fishbone (a dashed branch is a cause+ with little behind it), then the decision and the to-do */+.nt { opacity: 0; animation: note 12s infinite both; font-size: 13px; }+.nt.why { animation-delay: 1.6s; } .nt.items { animation-delay: 8.6s; }+/* Drawn as the app draws it: the question, then the causes in pairs either side of a spine */+.nt.why { padding: 10px 12px; border-radius: 16px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }+.nt.why .q { display: flex; align-items: center; gap: 6px; color: var(--grey); }+.nt.why .q b { font-size: 13px; color: var(--ink); }+.nt.why .q span, .nt.why .hint { margin-left: auto; font-size: 11px; color: var(--faint); white-space: nowrap; }+.nt.why .hint { margin-left: 0; }+.bones { display: grid; grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr); row-gap: 6px; }+.bones i { position: relative; }+.bones i::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: #D6D6D6; }+.bones i::after { content: ""; position: absolute; left: 5.5px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--ink); }+.bones .br { padding: 8px 10px; border-radius: 10px; background: var(--soft); font-size: 12px; line-height: 1.4; color: var(--grey); }+.bones .br b { display: block; margin-bottom: 2px; color: var(--ink); }+.bones .br.weak { background: none; border: 1px dashed #CCCCCC; padding: 7px 9px; }+.bones .br.weak b { color: var(--faint); }+:lang(ko) .bones .br, :lang(ko) .speak .hold { word-break: keep-all; }+.nt.items { display: flex; flex-direction: column; gap: 6px; }+.nt.items div { display: flex; align-items: baseline; gap: 6px; }+.nt.items b { flex: none; font-size: 12px; color: var(--orange-text); }+.nt.items .who { margin-left: auto; padding-left: 8px; font-weight: 600; white-space: nowrap; }@keyframes note { 0% { opacity: 0; transform: translateX(14px); } 5%, 100% { opacity: 1; transform: none; } }@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }-.speak { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; }-.speak .hold { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--grey); }+.speak { padding: 12px 16px; border-radius: 14px; }+.speak .hold { font-size: 13px; line-height: 1.9; color: var(--grey); }kbd { padding: 4px 10px; border-radius: 8px; border: 1px solid #DADDE2; background: var(--card); font: inherit; font-weight: 700; color: var(--ink); }-.speak kbd { animation: pulse 2s ease-out infinite; }+.speak kbd { padding: 2px 8px; margin: 0 2px; animation: pulse 2s ease-out infinite; }@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(232,85,43,.45); } 100% { box-shadow: 0 0 0 16px rgba(232,85,43,0); } }-.speak .out { display: flex; align-items: flex-start; gap: 8px; font-weight: 600; color: var(--orange-text); }-.speak .out svg { flex: none; margin-top: 3px; }/* App names, moving */.works { padding: 8px 0 88px; }@@ -408,9 +459,14 @@ h2.big { margin: 0 0 14px; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.2.subscribe .btn { min-height: 44px; font-size: 14px; border-radius: 11px; }@media (max-width: 640px) {- .screen { height: 260px; gap: 20px; }- .avatar { width: 64px; height: 64px; }- .subbar { height: 70px; padding: 10px 14px; bottom: 16px; width: 92%; }+ .screen { height: 260px; }+ .window .bar i { display: none; }+ .window .bar .title { margin-left: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }+ .tiles { top: 22px; gap: 10px; }+ .tile b { width: 40px; height: 40px; font-size: 17px; }+ .tile span { left: 8px; bottom: 5px; font-size: 11px; }+ .tile em { right: 8px; bottom: 7px; }+ .subbar { padding: 10px 14px; bottom: 16px; width: 92%; }.cap .en { font-size: 11px; }.cap .zh { font-size: 16px; }.track li { font-size: 18px; padding: 0 20px; }@@ -429,6 +485,7 @@ h2.big { margin: 0 0 14px; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.2@keyframes strike { from { background-size: 0 2px; } to { background-size: 100% 2px; } }@media (prefers-reduced-motion: reduce) {*, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }- .cap:first-child, .note { opacity: 1; }+ .window:not(.playing) .cap:first-child, .nt { opacity: 1; }+ .window:not(.playing) .tile:first-child { border-color: var(--orange); }}[hidden] { display: none !important; }