Add C++ runtime for vocos (#2014)
This commit is contained in:
@@ -115,7 +115,7 @@ var
|
||||
Config: TSherpaOnnxOfflineTtsConfig;
|
||||
begin
|
||||
Config.Model.Matcha.AcousticModel := './matcha-icefall-en_US-ljspeech/model-steps-3.onnx';
|
||||
Config.Model.Matcha.Vocoder := './hifigan_v2.onnx';
|
||||
Config.Model.Matcha.Vocoder := './vocos-22khz-univ.onnx';
|
||||
Config.Model.Matcha.Tokens := './matcha-icefall-en_US-ljspeech/tokens.txt';
|
||||
Config.Model.Matcha.DataDir := './matcha-icefall-en_US-ljspeech/espeak-ng-data';
|
||||
Config.Model.NumThreads := 1;
|
||||
|
||||
@@ -21,7 +21,7 @@ var
|
||||
Config: TSherpaOnnxOfflineTtsConfig;
|
||||
begin
|
||||
Config.Model.Matcha.AcousticModel := './matcha-icefall-en_US-ljspeech/model-steps-3.onnx';
|
||||
Config.Model.Matcha.Vocoder := './hifigan_v2.onnx';
|
||||
Config.Model.Matcha.Vocoder := './vocos-22khz-univ.onnx';
|
||||
Config.Model.Matcha.Tokens := './matcha-icefall-en_US-ljspeech/tokens.txt';
|
||||
Config.Model.Matcha.DataDir := './matcha-icefall-en_US-ljspeech/espeak-ng-data';
|
||||
Config.Model.NumThreads := 1;
|
||||
|
||||
@@ -115,7 +115,7 @@ var
|
||||
Config: TSherpaOnnxOfflineTtsConfig;
|
||||
begin
|
||||
Config.Model.Matcha.AcousticModel := './matcha-icefall-zh-baker/model-steps-3.onnx';
|
||||
Config.Model.Matcha.Vocoder := './hifigan_v2.onnx';
|
||||
Config.Model.Matcha.Vocoder := './vocos-22khz-univ.onnx';
|
||||
Config.Model.Matcha.Lexicon := './matcha-icefall-zh-baker/lexicon.txt';
|
||||
Config.Model.Matcha.Tokens := './matcha-icefall-zh-baker/tokens.txt';
|
||||
Config.Model.Matcha.DictDir := './matcha-icefall-zh-baker/dict';
|
||||
|
||||
@@ -21,7 +21,7 @@ var
|
||||
Config: TSherpaOnnxOfflineTtsConfig;
|
||||
begin
|
||||
Config.Model.Matcha.AcousticModel := './matcha-icefall-zh-baker/model-steps-3.onnx';
|
||||
Config.Model.Matcha.Vocoder := './hifigan_v2.onnx';
|
||||
Config.Model.Matcha.Vocoder := './vocos-22khz-univ.onnx';
|
||||
Config.Model.Matcha.Lexicon := './matcha-icefall-zh-baker/lexicon.txt';
|
||||
Config.Model.Matcha.Tokens := './matcha-icefall-zh-baker/tokens.txt';
|
||||
Config.Model.Matcha.DictDir := './matcha-icefall-zh-baker/dict';
|
||||
|
||||
@@ -33,8 +33,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
|
||||
|
||||
fpc \
|
||||
|
||||
@@ -33,8 +33,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
|
||||
|
||||
fpc \
|
||||
|
||||
@@ -32,8 +32,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
|
||||
|
||||
fpc \
|
||||
|
||||
@@ -32,8 +32,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
|
||||
|
||||
fpc \
|
||||
|
||||
Reference in New Issue
Block a user