<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lilchinese/scripts, branch main</title>
<subtitle>lilchinese — live 高橋メソッド subtitles for spoken Chinese (local ASR, optional local MT)
</subtitle>
<link rel='alternate' type='text/html' href='http://git.tomcooks.com/lilchinese/'/>
<entry>
<title>prepare for publication: MIT licence, no bundled third-party photo, tighter ignores</title>
<updated>2026-11-20T14:49:14+00:00</updated>
<author>
<name>wuhei</name>
<email>wuhei@users.noreply.github.com</email>
</author>
<published>2026-11-20T14:49:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tomcooks.com/lilchinese/commit/?id=07ac2567dab0041ced22fde8fafbd4c7ae90da0e'/>
<id>07ac2567dab0041ced22fde8fafbd4c7ae90da0e</id>
<content type='text'>
- the intro picture was press photography from a news site; it is no longer tracked
  (web/intro.jpg is gitignored) and scripts/fetch-intro.sh installs your own. The page
  drops the &lt;img&gt; if it 404s, so a fresh clone is just the red field and the title.
- .gitignore now covers recorder output (mp4/mkv/webm/mov/m4v), the media files that
  land in the working directory during a talk (*.png/*.jpg/*.wav/*.mp3), models and
  session logs, so 'git add -A' cannot sweep them into a commit.
- LICENSE: MIT for the code.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- the intro picture was press photography from a news site; it is no longer tracked
  (web/intro.jpg is gitignored) and scripts/fetch-intro.sh installs your own. The page
  drops the &lt;img&gt; if it 404s, so a fresh clone is just the red field and the title.
- .gitignore now covers recorder output (mp4/mkv/webm/mov/m4v), the media files that
  land in the working directory during a talk (*.png/*.jpg/*.wav/*.mp3), models and
  session logs, so 'git add -A' cannot sweep them into a commit.
- LICENSE: MIT for the code.
</pre>
</div>
</content>
</entry>
<entry>
<title>english subtitles from a local translation model</title>
<updated>2026-11-19T11:38:24+00:00</updated>
<author>
<name>wuhei</name>
<email>wuhei@users.noreply.github.com</email>
</author>
<published>2026-11-19T11:38:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tomcooks.com/lilchinese/commit/?id=a5b77eb48974cfae45bac65ceb4880752444eb47'/>
<id>a5b77eb48974cfae45bac65ceb4880752444eb47</id>
<content type='text'>
Optional second line under the Chinese, translated on the machine:

- -translate-model spawns llama-server (free port, /health wait, SIGTERM on exit)
  and uses Hy-MT2-1.8B (Tencent Hunyuan MT) — a dedicated zh→en model, 30 tok/s
  on CPU, so a phrase lands in 0.5-0.8s
- -translate points at an already running OpenAI-compatible endpoint (ollama,
  LM Studio, llama-server)
- the English line is sticky rather than tied to the 9 characters on screen: no
  LLM can keep up with a slide that lives 0.3s, so the translation lags by about
  one model call and never blanks between phrases
- -translate-window (28 chars) trades context for latency; translations cached
- phrase text is debounced 200ms and coalesced latest-wins so growth does not
  queue up dozens of requests
- display reserves the English line only when translation is enabled, so the
  Chinese layout is unchanged without it; autofit now fits both lines
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Optional second line under the Chinese, translated on the machine:

- -translate-model spawns llama-server (free port, /health wait, SIGTERM on exit)
  and uses Hy-MT2-1.8B (Tencent Hunyuan MT) — a dedicated zh→en model, 30 tok/s
  on CPU, so a phrase lands in 0.5-0.8s
- -translate points at an already running OpenAI-compatible endpoint (ollama,
  LM Studio, llama-server)
- the English line is sticky rather than tied to the 9 characters on screen: no
  LLM can keep up with a slide that lives 0.3s, so the translation lags by about
  one model call and never blanks between phrases
- -translate-window (28 chars) trades context for latency; translations cached
- phrase text is debounced 200ms and coalesced latest-wins so growth does not
  queue up dozens of requests
- display reserves the English line only when translation is enabled, so the
  Chinese layout is unchanged without it; autofit now fits both lines
</pre>
</div>
</content>
</entry>
<entry>
<title>lilchinese: local streaming Chinese ASR rendered as fullscreen Takahashi slides</title>
<updated>2026-11-19T10:54:17+00:00</updated>
<author>
<name>wuhei</name>
<email>wuhei@users.noreply.github.com</email>
</author>
<published>2026-11-19T10:54:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tomcooks.com/lilchinese/commit/?id=10ee627143419d6e9c9186fbb0a023a34b08948e'/>
<id>10ee627143419d6e9c9186fbb0a023a34b08948e</id>
<content type='text'>
parec mic -&gt; sherpa-onnx streaming zipformer (zh, int8, offline) -&gt; slide
splitter -&gt; SSE -&gt; Firefox kiosk. No cloud, no Web Speech API.

- 20ms audio reads, ~35ms capture-to-paint overhead, 320ms model lookahead
- slides break on punctuation or at -chars; short tails don't blank a full slide
- autofit font (Noto Sans CJK SC Black), 90ms slam transition, SSE reconnect
- -record captures screen+mic via ffmpeg x11grab+pulse, finalized on Ctrl+C
- -wav plays a file through the pipeline for testing
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
parec mic -&gt; sherpa-onnx streaming zipformer (zh, int8, offline) -&gt; slide
splitter -&gt; SSE -&gt; Firefox kiosk. No cloud, no Web Speech API.

- 20ms audio reads, ~35ms capture-to-paint overhead, 320ms model lookahead
- slides break on punctuation or at -chars; short tails don't blank a full slide
- autofit font (Noto Sans CJK SC Black), 90ms slam transition, SSE reconnect
- -record captures screen+mic via ffmpeg x11grab+pulse, finalized on Ctrl+C
- -wav plays a file through the pipeline for testing
</pre>
</div>
</content>
</entry>
</feed>
