File size: 730 Bytes
2d99181 4c94812 2d99181 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
#!/usr/bin/env bash
name=$NAME
echo "name: $name"
type=$TYPE
echo "type: $type"
set -ex
# for en_US-lessac-medium.onnx
# export TYPE=lessac
# export NAME=medium
wget -qq https://huggingface.co/rhasspy/piper-voices/resolve/main/en/en_US/$name/$type/en_US-$name-$type.onnx
wget -qq https://huggingface.co/rhasspy/piper-voices/resolve/main/en/en_US/$name/$type/en_US-$name-$type.onnx.json
wget -qq https://huggingface.co/rhasspy/piper-voices/resolve/main/en/en_US/$name/$type/MODEL_CARD
wget -qq https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/espeak-ng-data.tar.bz2
tar xf espeak-ng-data.tar.bz2
rm espeak-ng-data.tar.bz2
pip install piper-phonemize onnx onnxruntime==1.16.0
python3 ./vits-piper-en_US.py
|