Remove YUE in whisper

This commit is contained in:
XXXXRT666 2025-10-05 14:20:20 +01:00
parent da43eb7669
commit 93870073e8
2 changed files with 2 additions and 2 deletions

View File

@ -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"],

View File

@ -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())