csukuangfj commited on
Commit
0c75795
1 Parent(s): 073ea05

add cantonese

Browse files
Files changed (1) hide show
  1. model.py +2 -0
model.py CHANGED
@@ -255,6 +255,8 @@ def _get_vits_hf(repo_id: str, speed: float) -> sherpa_onnx.OfflineTts:
255
  def get_pretrained_model(repo_id: str, speed: float) -> sherpa_onnx.OfflineTts:
256
  if repo_id in chinese_models:
257
  return chinese_models[repo_id](repo_id, speed)
 
 
258
  elif repo_id in english_models:
259
  return english_models[repo_id](repo_id, speed)
260
  elif repo_id in german_models:
 
255
  def get_pretrained_model(repo_id: str, speed: float) -> sherpa_onnx.OfflineTts:
256
  if repo_id in chinese_models:
257
  return chinese_models[repo_id](repo_id, speed)
258
+ if repo_id in cantonese_models:
259
+ return cantonese_models[repo_id](repo_id, speed)
260
  elif repo_id in english_models:
261
  return english_models[repo_id](repo_id, speed)
262
  elif repo_id in german_models: