diff options
| author | wuhei <wuhei@users.noreply.github.com> | 2026-11-19 20:27:10 +0100 |
|---|---|---|
| committer | wuhei <wuhei@users.noreply.github.com> | 2026-11-19 20:27:10 +0100 |
| commit | c547e022535c86de6ca98f626abbb66c4bbd96b2 (patch) | |
| tree | a9b5cbaef6c18b528765996fe9a411b9de019f42 /README.md | |
| parent | 78455c67406808fc1da9f8655708738f10e30d23 (diff) | |
| download | lilchinese-c547e022535c86de6ca98f626abbb66c4bbd96b2.tar.gz | |
intro page: red title slide with photo, 批斗大会 / STRUGGLE SESSION
- 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
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 21 |
1 files changed, 20 insertions, 1 deletions
@@ -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 | |
