rosavox/tools/update-piper

18 lines
498 B
Text
Raw Normal View History

2025-05-21 21:56:49 +00:00
#!/usr/bin/env sh
## const
dir_lib=lib
voice="v1.0.0/de/de_DE/eva_k/x_low/de_DE-eva_k-x_low.onnx"
## exec
mkdir -p ${dir_lib}
cd ${dir_lib}
curl -s -L https://github.com/rhasspy/piper/releases/download/v1.2.0/piper_amd64.tar.gz | tar -x -z
cd -
2025-05-23 12:59:21 +02:00
curl -s -L https://huggingface.co/rhasspy/piper-voices/resolve/${voice}?download=true > ${dir_lib}/piper/voice.onnx
curl -s -L https://huggingface.co/rhasspy/piper-voices/resolve/${voice}.json?download=true.json > ${dir_lib}/piper/voice.onnx.json