diff options
| author | wuhei <wuhei@users.noreply.github.com> | 2026-11-19 19:29:21 +0100 |
|---|---|---|
| committer | wuhei <wuhei@users.noreply.github.com> | 2026-11-19 19:29:21 +0100 |
| commit | 78455c67406808fc1da9f8655708738f10e30d23 (patch) | |
| tree | 9576aa52b20c40037e39e0c504bf5e4755963806 /README.md | |
| parent | b457d19d9b2c634570300d0f73087e18b4ec4a4a (diff) | |
| download | lilchinese-78455c67406808fc1da9f8655708738f10e30d23.tar.gz | |
settle short sentences on screen when the speaker pauses
A long sentence flipped through fragments and stopped on the last one: '我觉得今年
我的中文会说得好一些。' ended up on screen as '会说得好一些'. The frame that stays
up is also the frame that gets recorded, translated and logged, so it has to be the
whole sentence.
- -settle (default 20): at an endpoint, if the finished sentence is that short, it is
published whole and replaces the trailing fragment. Fragments still flip while you
speak, so the Takahashi rhythm is unchanged; -settle 0 restores it exactly.
- the fragment is no longer published for a sentence that is about to settle (one
look, not two), so there is no flash of a frame that is immediately replaced.
- tests: settles whole, long sentences still fragment, -settle 0 keeps fragments
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -63,6 +63,13 @@ Colours alternate — black on white, then white on black — at every sentence (a pause long enough for the recogniser's endpoint detector), so consecutive thoughts read as clearly separate slides. +**While you speak**, a long sentence flips through short phrases. **When you stop**, the +sentence settles: if it is at most `-settle` (20) characters, the whole thing replaces the +last fragment. So *我觉得今年我的中文会说得好一些* no longer ends up on screen as +`会说得好一些` — the frame that stays up, gets recorded, gets translated and is what +`Enter` logs is the sentence itself. Longer sentences keep the fragment behaviour; +`-settle 0` restores pure Takahashi. + ## Session log (Enter) `Enter` turns the sentence on screen green and appends it to a Markdown file, so the @@ -124,6 +131,7 @@ How it behaves, and why: | flag | default | meaning | |---|---|---| | `-chars` | `9` | max characters per slide (the whole point: keep it short) | +| `-settle` | `20` | on a pause, sentences up to this length are shown whole (`0` = off) | | `-preview` | `3` | don't replace a full slide with a shorter in-progress phrase than this | | `-source` | system default | PulseAudio source name (`pactl list short sources`) | | `-model` | auto-detect `models/` | model directory | |
