csukuangfj commited on
Commit
40de727
1 Parent(s): 6074c18

enable german

Browse files
Files changed (1) hide show
  1. model.py +10 -3
model.py CHANGED
@@ -72,6 +72,7 @@ def _get_vits_vctk(repo_id: str, speed: float) -> sherpa_onnx.OfflineTts:
72
 
73
  return tts
74
 
 
75
  @lru_cache(maxsize=10)
76
  def _get_vits_ljs(repo_id: str, speed: float) -> sherpa_onnx.OfflineTts:
77
  assert repo_id == "csukuangfj/vits-ljs"
@@ -111,8 +112,11 @@ def _get_vits_ljs(repo_id: str, speed: float) -> sherpa_onnx.OfflineTts:
111
 
112
  return tts
113
 
 
114
  @lru_cache(maxsize=10)
115
- def _get_vits_piper_de_DE_thorsten_medium(repo_id: str, speed: float) -> sherpa_onnx.OfflineTts:
 
 
116
  assert repo_id == "csukuangfj/vits-piper-de_DE-thorsten-medium"
117
 
118
  model = get_file(
@@ -150,8 +154,11 @@ def _get_vits_piper_de_DE_thorsten_medium(repo_id: str, speed: float) -> sherpa_
150
 
151
  return tts
152
 
 
153
  @lru_cache(maxsize=10)
154
- def _get_vits_piper_en_US_lessac_medium(repo_id: str, speed: float) -> sherpa_onnx.OfflineTts:
 
 
155
  assert repo_id == "csukuangfj/vits-piper-en_US-lessac-medium"
156
 
157
  model = get_file(
@@ -260,5 +267,5 @@ german_models = {
260
  language_to_models = {
261
  "Chinese": list(chinese_models.keys()),
262
  "English": list(english_models.keys()),
263
- # "German": list(german_models.keys()),
264
  }
 
72
 
73
  return tts
74
 
75
+
76
  @lru_cache(maxsize=10)
77
  def _get_vits_ljs(repo_id: str, speed: float) -> sherpa_onnx.OfflineTts:
78
  assert repo_id == "csukuangfj/vits-ljs"
 
112
 
113
  return tts
114
 
115
+
116
  @lru_cache(maxsize=10)
117
+ def _get_vits_piper_de_DE_thorsten_medium(
118
+ repo_id: str, speed: float
119
+ ) -> sherpa_onnx.OfflineTts:
120
  assert repo_id == "csukuangfj/vits-piper-de_DE-thorsten-medium"
121
 
122
  model = get_file(
 
154
 
155
  return tts
156
 
157
+
158
  @lru_cache(maxsize=10)
159
+ def _get_vits_piper_en_US_lessac_medium(
160
+ repo_id: str, speed: float
161
+ ) -> sherpa_onnx.OfflineTts:
162
  assert repo_id == "csukuangfj/vits-piper-en_US-lessac-medium"
163
 
164
  model = get_file(
 
267
  language_to_models = {
268
  "Chinese": list(chinese_models.keys()),
269
  "English": list(english_models.keys()),
270
+ "German": list(german_models.keys()),
271
  }