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 | |
pip install piper-phonemize onnx onnxruntime==1.16.0 | |
python3 ./vits-piper-en_US.py | |