Add JavaScript API (node-addon-api) for MatchaTTS models. (#1677)

This commit is contained in:
Fangjun Kuang
2025-01-03 15:14:28 +08:00
committed by GitHub
parent 648903834b
commit 0e299f30f5
6 changed files with 194 additions and 4 deletions

View File

@@ -85,6 +85,25 @@ fi
echo "----------tts----------"
wget https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/matcha-icefall-en_US-ljspeech.tar.bz2
tar xvf matcha-icefall-en_US-ljspeech.tar.bz2
rm matcha-icefall-en_US-ljspeech.tar.bz2
wget https://github.com/k2-fsa/sherpa-onnx/releases/download/vocoder-models/hifigan_v2.onnx
node ./test_tts_non_streaming_matcha_icefall_en.js
rm hifigan_v2.onnx
rm -rf matcha-icefall-en_US-ljspeech
wget https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/matcha-icefall-zh-baker.tar.bz2
tar xvf matcha-icefall-zh-baker.tar.bz2
rm matcha-icefall-zh-baker.tar.bz2
wget https://github.com/k2-fsa/sherpa-onnx/releases/download/vocoder-models/hifigan_v2.onnx
node ./test_tts_non_streaming_matcha_icefall_zh.js
rm hifigan_v2.onnx
rm -rf matcha-icefall-zh-baker
ls -lh *.wav
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/vits-piper-en_GB-cori-medium.tar.bz2
tar xf vits-piper-en_GB-cori-medium.tar.bz2
rm vits-piper-en_GB-cori-medium.tar.bz2