mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-10-15 21:26:51 +08:00
Remove YUE in whisper
This commit is contained in:
parent
da43eb7669
commit
93870073e8
@ -15,7 +15,7 @@ def get_models():
|
||||
asr_dict = {
|
||||
"达摩 ASR (中文)": {"lang": ["zh", "yue"], "size": ["large"], "path": "funasr_asr.py", "precision": ["float32"]},
|
||||
"Faster Whisper (多语种)": {
|
||||
"lang": ["auto", "en", "ja", "ko", "yue"],
|
||||
"lang": ["auto", "en", "ja", "ko"],
|
||||
"size": get_models(),
|
||||
"path": "fasterwhisper_asr.py",
|
||||
"precision": ["float32", "float16", "int8"],
|
||||
|
@ -128,7 +128,7 @@ def execute_asr(input_folder, output_folder, model_path, language, precision):
|
||||
)
|
||||
text = ""
|
||||
|
||||
if info.language == "zh":
|
||||
if info.language in ["zh", "yue"]:
|
||||
print("检测为中文文本, 转 FunASR 处理")
|
||||
text = only_asr(file_path, language=info.language.lower())
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user