Add C++ runtime for vocos (#2014)

This commit is contained in:
Fangjun Kuang
2025-03-17 17:05:15 +08:00
committed by GitHub
parent 623cdc9eec
commit 0aacf02dd8
62 changed files with 558 additions and 162 deletions

View File

@@ -159,7 +159,7 @@ function initTts(context: Context): OfflineTts {
// https://k2-fsa.github.io/sherpa/onnx/tts/pretrained_models/matcha.html#matcha-icefall-zh-baker-chinese-1-female-speaker
// modelDir = 'matcha-icefall-zh-baker';
// acousticModelName = 'model-steps-3.onnx';
// vocoder = 'hifigan_v2.onnx';
// vocoder = 'vocos-22khz-univ.onnx';
// lexicon = 'lexicon.txt';
// dictDir = 'dict';
// ruleFsts = `date.fst,phone.fst,number.fst`;
@@ -169,7 +169,7 @@ function initTts(context: Context): OfflineTts {
// https://k2-fsa.github.io/sherpa/onnx/tts/pretrained_models/matcha.html#matcha-icefall-en-us-ljspeech-american-english-1-female-speaker
// modelDir = 'matcha-icefall-en_US-ljspeech';
// acousticModelName = 'model-steps-3.onnx';
// vocoder = 'hifigan_v2.onnx';
// vocoder = 'vocos-22khz-univ.onnx';
// dataDir = 'espeak-ng-data';
// Example 10