Skip to content

Commit a19e576

Browse files
authored
Fix Matcha + vocos for Android (#2024)
1 parent a50901f commit a19e576

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sherpa-onnx/csrc/vocoder.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ std::unique_ptr<Vocoder> Vocoder::Create(Manager *mgr,
100100
switch (model_type) {
101101
case ModelType::kHifigan:
102102
return std::make_unique<HifiganVocoder>(
103-
config.num_threads, config.provider, config.matcha.vocoder);
103+
mgr, config.num_threads, config.provider, config.matcha.vocoder);
104104
case ModelType::kVocoos:
105-
return std::make_unique<VocosVocoder>(config);
105+
return std::make_unique<VocosVocoder>(mgr, config);
106106
case ModelType::kUnknown:
107107
SHERPA_ONNX_LOGE("Unknown model type in vocoder!");
108108
return nullptr;

0 commit comments

Comments
 (0)