This repository has been archived on 2025-08-26. You can view files and clone it, but cannot push or open issues or pull requests.
Files
enginex-mr_series-sherpa-onnx/scripts/vocos/run.sh
2025-03-17 09:19:50 +08:00

26 lines
795 B
Bash
Executable File

#!/usr/bin/env bash
set -ex
if [ ! -f mel_spec_22khz_univ.onnx ]; then
curl -SL -O https://huggingface.co/BSC-LT/vocos-mel-22khz/resolve/main/mel_spec_22khz_univ.onnx
fi
if [ ! -f ./vocos-22khz-univ.onnx ]; then
python3 ./add_meta_data.py --in-model ./mel_spec_22khz_univ.onnx --out-model ./vocos-22khz-univ.onnx
fi
# The following is for testing
if [ ! -f ./matcha-icefall-en_US-ljspeech/tokens.txt ]; then
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/matcha-icefall-en_US-ljspeech.tar.bz2
tar xf matcha-icefall-en_US-ljspeech.tar.bz2
rm matcha-icefall-en_US-ljspeech.tar.bz2
fi
if [ ! -f ./hifigan_v2.onnx ]; then
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/vocoder-models/hifigan_v2.onnx
fi
python3 ./test.py
ls -lh