From c547e022535c86de6ca98f626abbb66c4bbd96b2 Mon Sep 17 00:00:00 2001 From: wuhei Date: Thu, 19 Nov 2026 20:27:10 +0100 Subject: =?UTF-8?q?intro=20page:=20red=20title=20slide=20with=20photo,=20?= =?UTF-8?q?=E6=89=B9=E6=96=97=E5=A4=A7=E4=BC=9A=20/=20STRUGGLE=20SESSION?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - served from the embedded web dir (http.FileServer over the go:embed FS), so the binary is still self-contained - nothing is published to the display until Enter: the broker gates every broadcast on a started flag, and /start also resets the recogniser so room noise during setup cannot leak into the first slide - /config hands the page the intro strings, whether translation is on, and whether the intro was already dismissed (so a reload mid-talk skips it) - -intro=false, -intro-zh, -intro-en, -intro-image to tune or skip it - web/intro.jpg is third-party press photography (secretchina.com), bundled for convenience, not covered by this project's licence --- README.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 0327a8e..a601c57 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ one short thought per screen, replaced on the next one. | key | what it does | |---|---| -| `Enter` | **keep** — the sentence turns green and is appended to the session log | +| `Enter` | **start** while the intro is up; afterwards **keep** — the sentence turns green and is appended to the session log | | `Backspace` / `Delete` / `c` | **cut** — the screen goes red and the half-heard sentence is dropped so you can say it again | | `f` | toggle fullscreen | @@ -70,6 +70,24 @@ last fragment. So *我觉得今年我的中文会说得好一些* no longer ends `Enter` logs is the sentence itself. Longer sentences keep the fragment behaviour; `-settle 0` restores pure Takahashi. +## Intro page + +The talk opens on a red title slide — photo, 批斗大会, STRUGGLE SESSION, and a +`⏎ Press enter to start` hint at the bottom. `Enter` starts the display *and* the +recognition: while the intro is up nothing is published, so the noise of setting up +(moving chairs, testing the mic) never turns into a slide. + +| flag | default | meaning | +|---|---|---| +| `-intro` | `true` | show the intro and wait for Enter | +| `-intro-zh` | `批斗大会` | headline | +| `-intro-en` | `STRUGGLE SESSION` | subtitle | +| `-intro-image` | `/intro.jpg` | picture; overwrite `web/intro.jpg` (or pass a URL/local path) to change it | + +> `web/intro.jpg` is third-party press photography from secretchina.com, bundled here for +> convenience. It is not covered by this project's licence — swap it for something you +> have the rights to if the repo ever stops being private. + ## Session log (Enter) `Enter` turns the sentence on screen green and appends it to a Markdown file, so the @@ -138,6 +156,7 @@ How it behaves, and why: | `-browser` | `firefox --kiosk {url}` | how to open the display; `{url}` substituted; empty = don't launch | | `-record` | off | ffmpeg: `x11grab` + `pulse` → h264/aac mp4 | | `-log` | `sessions/` | session log target: a file, or a directory for a timestamped file | +| `-intro`, `-intro-zh`, `-intro-en`, `-intro-image` | on, 批斗大会, STRUGGLE SESSION, /intro.jpg | title slide | | `-threads` | `2` | onnxruntime threads | | `-addr` | `127.0.0.1:8787` | HTTP/SSE listen address | | `-wav` | off | feed an audio file (paced realtime) instead of the mic | -- cgit v1.2.3