Fix typos (#1101)
This commit is contained in:
2
.github/workflows/dot-net.yaml
vendored
2
.github/workflows/dot-net.yaml
vendored
@@ -162,7 +162,7 @@ jobs:
|
|||||||
tree /tmp/windows*
|
tree /tmp/windows*
|
||||||
echo "----"
|
echo "----"
|
||||||
|
|
||||||
rm -v /tmp/windows*/*.lib
|
rm -fv /tmp/windows*/*.lib
|
||||||
tree /tmp/windows*
|
tree /tmp/windows*
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
## 1.10.11
|
## 1.10.11
|
||||||
|
|
||||||
* Support the iOS platform for iOS.
|
* Support the iOS platform for Flutter.
|
||||||
|
|
||||||
## 1.10.10
|
## 1.10.10
|
||||||
|
|
||||||
|
|||||||
@@ -332,18 +332,23 @@ def get_vits_models() -> List[TtsModel]:
|
|||||||
model_name="vits-zh-hf-fanchen-unity.onnx",
|
model_name="vits-zh-hf-fanchen-unity.onnx",
|
||||||
lang="zh",
|
lang="zh",
|
||||||
),
|
),
|
||||||
|
TtsModel(
|
||||||
|
model_dir="sherpa-onnx-vits-zh-ll",
|
||||||
|
model_name="model.onnx",
|
||||||
|
lang="zh",
|
||||||
|
),
|
||||||
]
|
]
|
||||||
|
|
||||||
rule_fsts = ["phone.fst", "date.fst", "number.fst", "new_heteronym.fst"]
|
rule_fsts = ["phone.fst", "date.fst", "number.fst", "new_heteronym.fst"]
|
||||||
for m in chinese_models:
|
for m in chinese_models:
|
||||||
s = [f"{m.model_dir}/{r}" for r in rule_fsts]
|
s = [f"{m.model_dir}/{r}" for r in rule_fsts]
|
||||||
if "vits-zh-hf" in m.model_dir:
|
if "vits-zh-hf" in m.model_dir or "sherpa-onnx-vits-zh-ll" == m.model_dir:
|
||||||
s = s[:-1]
|
s = s[:-1]
|
||||||
m.dict_dir = m.model_dir + "/dict"
|
m.dict_dir = m.model_dir + "/dict"
|
||||||
|
|
||||||
m.rule_fsts = ",".join(s)
|
m.rule_fsts = ",".join(s)
|
||||||
|
|
||||||
if "vits-zh-hf" not in m.model_dir:
|
if "vits-zh-hf" not in m.model_dir and "zh-ll" not in m.model_dir:
|
||||||
m.rule_fars = f"{m.model_dir}/rule.far"
|
m.rule_fars = f"{m.model_dir}/rule.far"
|
||||||
|
|
||||||
all_models = chinese_models + [
|
all_models = chinese_models + [
|
||||||
|
|||||||
Reference in New Issue
Block a user