Add C++ runtime for vocos (#2014)
This commit is contained in:
@@ -10,7 +10,7 @@ public class NonStreamingTtsMatchaEn {
|
||||
// https://k2-fsa.github.io/sherpa/onnx/tts/pretrained_models/matcha.html#matcha-icefall-en-us-ljspeech-american-english-1-female-speaker
|
||||
// to download model files
|
||||
String acousticModel = "./matcha-icefall-en_US-ljspeech/model-steps-3.onnx";
|
||||
String vocoder = "./hifigan_v2.onnx";
|
||||
String vocoder = "./vocos-22khz-univ.onnx";
|
||||
String tokens = "./matcha-icefall-en_US-ljspeech/tokens.txt";
|
||||
String dataDir = "./matcha-icefall-en_US-ljspeech/espeak-ng-data";
|
||||
String text =
|
||||
|
||||
@@ -10,7 +10,7 @@ public class NonStreamingTtsMatchaZh {
|
||||
// https://k2-fsa.github.io/sherpa/onnx/tts/pretrained_models/matcha.html#matcha-icefall-zh-baker-chinese-1-female-speaker
|
||||
// to download model files
|
||||
String acousticModel = "./matcha-icefall-zh-baker/model-steps-3.onnx";
|
||||
String vocoder = "./hifigan_v2.onnx";
|
||||
String vocoder = "./vocos-22khz-univ.onnx";
|
||||
String tokens = "./matcha-icefall-zh-baker/tokens.txt";
|
||||
String lexicon = "./matcha-icefall-zh-baker/lexicon.txt";
|
||||
String dictDir = "./matcha-icefall-zh-baker/dict";
|
||||
|
||||
@@ -35,8 +35,8 @@ if [ ! -f ./matcha-icefall-en_US-ljspeech/model-steps-3.onnx ]; then
|
||||
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
|
||||
if [ ! -f ./vocos-22khz-univ.onnx ]; then
|
||||
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/vocoder-models/vocos-22khz-univ.onnx
|
||||
fi
|
||||
|
||||
java \
|
||||
|
||||
@@ -34,8 +34,8 @@ if [ ! -f ./matcha-icefall-zh-baker/model-steps-3.onnx ]; then
|
||||
rm matcha-icefall-zh-baker.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
|
||||
if [ ! -f ./vocos-22khz-univ.onnx ]; then
|
||||
curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/vocoder-models/vocos-22khz-univ.onnx
|
||||
fi
|
||||
|
||||
java \
|
||||
|
||||
Reference in New Issue
Block a user