mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-12 11:32:19 +00:00
Fix CI
This commit is contained in:
parent
9f5cf16e67
commit
ea94c5bb0f
18
.github/scripts/ljspeech/TTS/run-matcha.sh
vendored
18
.github/scripts/ljspeech/TTS/run-matcha.sh
vendored
@ -98,19 +98,23 @@ function export_onnx() {
|
||||
python3 ./matcha/export_onnx_hifigan.py
|
||||
else
|
||||
curl -SL -O https://huggingface.co/csukuangfj/icefall-tts-ljspeech-matcha-en-2024-10-28/resolve/main/exp/hifigan_v1.onnx
|
||||
curl -SL -O https://huggingface.co/csukuangfj/icefall-tts-ljspeech-matcha-en-2024-10-28/resolve/main/exp/hifigan_v2.onnx
|
||||
curl -SL -O https://huggingface.co/csukuangfj/icefall-tts-ljspeech-matcha-en-2024-10-28/resolve/main/exp/hifigan_v3.onnx
|
||||
fi
|
||||
|
||||
ls -lh *.onnx
|
||||
|
||||
python3 ./matcha/onnx_pretrained.py \
|
||||
--acoustic-model ./model-steps-6.onnx \
|
||||
--vocoder ./hifigan_v1.onnx \
|
||||
--tokens ./data/tokens.txt \
|
||||
--input-text "how are you doing?" \
|
||||
--output-wav /icefall/generated-matcha-tts-steps-6-v1.wav
|
||||
for v in v1 v2 v3; do
|
||||
python3 ./matcha/onnx_pretrained.py \
|
||||
--acoustic-model ./model-steps-6.onnx \
|
||||
--vocoder ./hifigan_$v.onnx \
|
||||
--tokens ./data/tokens.txt \
|
||||
--input-text "how are you doing?" \
|
||||
--output-wav /icefall/generated-matcha-tts-steps-6-$v.wav
|
||||
done
|
||||
|
||||
ls -lh /icefall/*.wav
|
||||
soxi /icefall/generated-matcha-tts-steps-6-v1.wav
|
||||
soxi /icefall/generated-matcha-tts-steps-6-*.wav
|
||||
}
|
||||
|
||||
prepare_data
|
||||
|
Loading…
x
Reference in New Issue
Block a user