From 78455c67406808fc1da9f8655708738f10e30d23 Mon Sep 17 00:00:00 2001 From: wuhei Date: Thu, 19 Nov 2026 19:29:21 +0100 Subject: settle short sentences on screen when the speaker pauses MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index a8755cd..0327a8e 100644 --- a/README.md +++ b/README.md @@ -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 | -- cgit v1.2.3