#!/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 - for voice in ${voices} do 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 done