Build generating subtitles APPs for more models (#1265)

This commit is contained in:
Fangjun Kuang
2024-08-16 20:11:24 +08:00
committed by GitHub
parent a3e98750e9
commit 63713ecbf0
7 changed files with 99 additions and 12 deletions

View File

@@ -342,7 +342,6 @@ def get_vits_models() -> List[TtsModel]:
or "sherpa-onnx-vits-zh-ll" == m.model_dir
or "melo-tts" in m.model_dir
):
s = s[:-1]
m.dict_dir = m.model_dir + "/dict"
else:
m.rule_fars = f"{m.model_dir}/rule.far"