summaryrefslogtreecommitdiff
path: root/scripts/fetch-model.sh
diff options
context:
space:
mode:
authorwuhei <wuhei@users.noreply.github.com>2026-11-19 11:54:17 +0100
committerwuhei <wuhei@users.noreply.github.com>2026-11-19 11:54:17 +0100
commit10ee627143419d6e9c9186fbb0a023a34b08948e (patch)
treea9f2a4fc1beae1911a4e89421587039d9eae561d /scripts/fetch-model.sh
downloadlilchinese-10ee627143419d6e9c9186fbb0a023a34b08948e.tar.gz
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
Diffstat (limited to 'scripts/fetch-model.sh')
-rwxr-xr-xscripts/fetch-model.sh16
1 files changed, 16 insertions, 0 deletions
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"