blob: 5b1b5708a9e6ce7aecb629505866d7db7680079e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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"
|