From 10ee627143419d6e9c9186fbb0a023a34b08948e Mon Sep 17 00:00:00 2001 From: wuhei Date: Thu, 19 Nov 2026 11:54:17 +0100 Subject: lilchinese: local streaming Chinese ASR rendered as fullscreen Takahashi slides 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 --- scripts/fetch-model.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 scripts/fetch-model.sh (limited to 'scripts') diff --git a/scripts/fetch-model.sh b/scripts/fetch-model.sh new file mode 100755 index 0000000..5b1b570 --- /dev/null +++ b/scripts/fetch-model.sh @@ -0,0 +1,16 @@ +#!/bin/sh +# Downloads a streaming Chinese ASR model for sherpa-onnx (int8, ~133 MB). +set -eu +name=sherpa-onnx-streaming-zipformer-zh-int8-2025-06-30 +dest=${1:-models} +mkdir -p "$dest" +if [ -d "$dest/$name" ]; then + echo "already have $dest/$name" + exit 0 +fi +url="https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/$name.tar.bz2" +echo "downloading $url" +curl -L --fail -o "$dest/$name.tar.bz2" "$url" +tar -xjf "$dest/$name.tar.bz2" -C "$dest" +rm -f "$dest/$name.tar.bz2" +ls "$dest/$name" -- cgit v1.2.3