csukuangfj commited on
Commit
cb783c9
·
1 Parent(s): 97b59f3
Files changed (1) hide show
  1. model.py +4 -1
model.py CHANGED
@@ -235,7 +235,9 @@ def _get_vits_zh_aishell3(repo_id: str, speed: float) -> sherpa_onnx.OfflineTts:
235
 
236
 
237
  @lru_cache(maxsize=10)
238
- def _get_matcha_hf(repo_id: str, speed: float) -> sherpa_onnx.OfflineTts:
 
 
239
  repo_id = repo_id.split("|")[0]
240
  assert repo_id in ("csukuangfj/matcha-icefall-zh-baker",)
241
 
@@ -290,6 +292,7 @@ def _get_matcha_hf(repo_id: str, speed: float) -> sherpa_onnx.OfflineTts:
290
 
291
  tts_config = sherpa_onnx.OfflineTtsConfig(
292
  model=sherpa_onnx.OfflineTtsModelConfig(
 
293
  matcha=sherpa_onnx.OfflineTtsMatchaModelConfig(
294
  acoustic_model=acoustic_model,
295
  vocoder=vocoder,
 
235
 
236
 
237
  @lru_cache(maxsize=10)
238
+ def _get_mOfflineTtsMatchaModelConfigatcha_hf(
239
+ repo_id: str, speed: float
240
+ ) -> sherpa_onnx.OfflineTts:
241
  repo_id = repo_id.split("|")[0]
242
  assert repo_id in ("csukuangfj/matcha-icefall-zh-baker",)
243
 
 
292
 
293
  tts_config = sherpa_onnx.OfflineTtsConfig(
294
  model=sherpa_onnx.OfflineTtsModelConfig(
295
+ vits=sherpa_onnx.OfflineTtsVitsModelConfig(),
296
  matcha=sherpa_onnx.OfflineTtsMatchaModelConfig(
297
  acoustic_model=acoustic_model,
298
  vocoder=vocoder,