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

@@ -131,7 +131,7 @@ func getTtsFor_matcha_icefall_zh_baker() -> SherpaOnnxOfflineTtsWrapper {
// please see https://k2-fsa.github.io/sherpa/onnx/tts/pretrained_models/matcha.html#matcha-icefall-zh-baker-chinese-1-female-speaker
let acousticModel = getResource("model-steps-3", "onnx")
let vocoder = getResource("hifigan_v2", "onnx")
let vocoder = getResource("vocos-22khz-univ", "onnx")
let tokens = getResource("tokens", "txt")
let lexicon = getResource("lexicon", "txt")