|
- Enter (kiosk) turns the sentence green and appends it to a Markdown session log,
default sessions/session-<timestamp>.md, -log to override. Written lazily, so a
run that kept nothing leaves no file.
- logs the whole sentence rather than the 9 characters on screen; the snapshot waits
450ms so the model's lookahead has decoded the final syllables
- the English in the log is a fresh translation of that sentence, done on a single
ordered worker off the audio path, so it never delays recognition
- green clears with the next sentence, like the red cut screen
- double Enter within 2s does not duplicate a line
- tests: keep state, sentence selection, log format and dedupe
|
|
parec mic -> sherpa-onnx streaming zipformer (zh, int8, offline) -> slide
splitter -> SSE -> 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
|