继续操作前请注册或者登录。
Fangjun Kuang
Committed by GitHub

Fix typos (#1101)

@@ -162,7 +162,7 @@ jobs: @@ -162,7 +162,7 @@ jobs:
162 tree /tmp/windows* 162 tree /tmp/windows*
163 echo "----" 163 echo "----"
164 164
165 - rm -v /tmp/windows*/*.lib 165 + rm -fv /tmp/windows*/*.lib
166 tree /tmp/windows* 166 tree /tmp/windows*
167 167
168 - name: Build 168 - name: Build
@@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
5 5
6 ## 1.10.11 6 ## 1.10.11
7 7
8 -* Support the iOS platform for iOS. 8 +* Support the iOS platform for Flutter.
9 9
10 ## 1.10.10 10 ## 1.10.10
11 11
@@ -332,18 +332,23 @@ def get_vits_models() -> List[TtsModel]: @@ -332,18 +332,23 @@ def get_vits_models() -> List[TtsModel]:
332 model_name="vits-zh-hf-fanchen-unity.onnx", 332 model_name="vits-zh-hf-fanchen-unity.onnx",
333 lang="zh", 333 lang="zh",
334 ), 334 ),
  335 + TtsModel(
  336 + model_dir="sherpa-onnx-vits-zh-ll",
  337 + model_name="model.onnx",
  338 + lang="zh",
  339 + ),
335 ] 340 ]
336 341
337 rule_fsts = ["phone.fst", "date.fst", "number.fst", "new_heteronym.fst"] 342 rule_fsts = ["phone.fst", "date.fst", "number.fst", "new_heteronym.fst"]
338 for m in chinese_models: 343 for m in chinese_models:
339 s = [f"{m.model_dir}/{r}" for r in rule_fsts] 344 s = [f"{m.model_dir}/{r}" for r in rule_fsts]
340 - if "vits-zh-hf" in m.model_dir: 345 + if "vits-zh-hf" in m.model_dir or "sherpa-onnx-vits-zh-ll" == m.model_dir:
341 s = s[:-1] 346 s = s[:-1]
342 m.dict_dir = m.model_dir + "/dict" 347 m.dict_dir = m.model_dir + "/dict"
343 348
344 m.rule_fsts = ",".join(s) 349 m.rule_fsts = ",".join(s)
345 350
346 - if "vits-zh-hf" not in m.model_dir: 351 + if "vits-zh-hf" not in m.model_dir and "zh-ll" not in m.model_dir:
347 m.rule_fars = f"{m.model_dir}/rule.far" 352 m.rule_fars = f"{m.model_dir}/rule.far"
348 353
349 all_models = chinese_models + [ 354 all_models = chinese_models + [