Add C++ runtime for vocos (#2014)
This commit is contained in:
@@ -17,8 +17,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
|
||||
|
||||
if [ ! -e ./tts-matcha-en ]; then
|
||||
|
||||
@@ -16,8 +16,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
|
||||
|
||||
if [ ! -e ./tts-matcha-zh ]; then
|
||||
|
||||
@@ -6,7 +6,7 @@ class MyClass {
|
||||
|
||||
func run() {
|
||||
let acousticModel = "./matcha-icefall-en_US-ljspeech/model-steps-3.onnx"
|
||||
let vocoder = "./hifigan_v2.onnx"
|
||||
let vocoder = "./vocos-22khz-univ.onnx"
|
||||
let tokens = "./matcha-icefall-en_US-ljspeech/tokens.txt"
|
||||
let dataDir = "./matcha-icefall-en_US-ljspeech/espeak-ng-data"
|
||||
let matcha = sherpaOnnxOfflineTtsMatchaModelConfig(
|
||||
|
||||
@@ -6,7 +6,7 @@ class MyClass {
|
||||
|
||||
func run() {
|
||||
let acousticModel = "./matcha-icefall-zh-baker/model-steps-3.onnx"
|
||||
let vocoder = "./hifigan_v2.onnx"
|
||||
let vocoder = "./vocos-22khz-univ.onnx"
|
||||
let lexicon = "./matcha-icefall-zh-baker/lexicon.txt"
|
||||
let tokens = "./matcha-icefall-zh-baker/tokens.txt"
|
||||
let dictDir = "./matcha-icefall-zh-baker/dict"
|
||||
|
||||
Reference in New Issue
Block a user