Spaces:
Running
Running
csukuangfj
commited on
Commit
•
3ae14be
1
Parent(s):
818393d
use max sentence = 1
Browse files
model.py
CHANGED
@@ -68,7 +68,8 @@ def _get_vits_vctk(repo_id: str, speed: float) -> sherpa_onnx.OfflineTts:
|
|
68 |
provider="cpu",
|
69 |
debug=True,
|
70 |
num_threads=2,
|
71 |
-
)
|
|
|
72 |
)
|
73 |
tts = sherpa_onnx.OfflineTts(tts_config)
|
74 |
|
@@ -108,7 +109,8 @@ def _get_vits_ljs(repo_id: str, speed: float) -> sherpa_onnx.OfflineTts:
|
|
108 |
provider="cpu",
|
109 |
debug=True,
|
110 |
num_threads=2,
|
111 |
-
)
|
|
|
112 |
)
|
113 |
tts = sherpa_onnx.OfflineTts(tts_config)
|
114 |
|
@@ -158,7 +160,8 @@ def _get_vits_piper(repo_id: str, speed: float) -> sherpa_onnx.OfflineTts:
|
|
158 |
provider="cpu",
|
159 |
debug=True,
|
160 |
num_threads=2,
|
161 |
-
)
|
|
|
162 |
)
|
163 |
tts = sherpa_onnx.OfflineTts(tts_config)
|
164 |
|
@@ -224,6 +227,7 @@ def _get_vits_zh_aishell3(repo_id: str, speed: float) -> sherpa_onnx.OfflineTts:
|
|
224 |
),
|
225 |
rule_fsts=rule_fsts,
|
226 |
rule_fars=rule_fars,
|
|
|
227 |
)
|
228 |
tts = sherpa_onnx.OfflineTts(tts_config)
|
229 |
|
@@ -312,6 +316,7 @@ def _get_vits_hf(repo_id: str, speed: float) -> sherpa_onnx.OfflineTts:
|
|
312 |
),
|
313 |
rule_fsts=rule_fsts,
|
314 |
rule_fars=rule_fars,
|
|
|
315 |
)
|
316 |
tts = sherpa_onnx.OfflineTts(tts_config)
|
317 |
|
|
|
68 |
provider="cpu",
|
69 |
debug=True,
|
70 |
num_threads=2,
|
71 |
+
),
|
72 |
+
max_num_sentences=1,
|
73 |
)
|
74 |
tts = sherpa_onnx.OfflineTts(tts_config)
|
75 |
|
|
|
109 |
provider="cpu",
|
110 |
debug=True,
|
111 |
num_threads=2,
|
112 |
+
),
|
113 |
+
max_num_sentences=1,
|
114 |
)
|
115 |
tts = sherpa_onnx.OfflineTts(tts_config)
|
116 |
|
|
|
160 |
provider="cpu",
|
161 |
debug=True,
|
162 |
num_threads=2,
|
163 |
+
),
|
164 |
+
max_num_sentences=1,
|
165 |
)
|
166 |
tts = sherpa_onnx.OfflineTts(tts_config)
|
167 |
|
|
|
227 |
),
|
228 |
rule_fsts=rule_fsts,
|
229 |
rule_fars=rule_fars,
|
230 |
+
max_num_sentences=1,
|
231 |
)
|
232 |
tts = sherpa_onnx.OfflineTts(tts_config)
|
233 |
|
|
|
316 |
),
|
317 |
rule_fsts=rule_fsts,
|
318 |
rule_fars=rule_fars,
|
319 |
+
max_num_sentences=1,
|
320 |
)
|
321 |
tts = sherpa_onnx.OfflineTts(tts_config)
|
322 |
|