mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-10-16 14:08:38 +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_dict = {
|
||||||
"达摩 ASR (中文)": {"lang": ["zh", "yue"], "size": ["large"], "path": "funasr_asr.py", "precision": ["float32"]},
|
"达摩 ASR (中文)": {"lang": ["zh", "yue"], "size": ["large"], "path": "funasr_asr.py", "precision": ["float32"]},
|
||||||
"Faster Whisper (多语种)": {
|
"Faster Whisper (多语种)": {
|
||||||
"lang": ["auto", "en", "ja", "ko", "yue"],
|
"lang": ["auto", "en", "ja", "ko"],
|
||||||
"size": get_models(),
|
"size": get_models(),
|
||||||
"path": "fasterwhisper_asr.py",
|
"path": "fasterwhisper_asr.py",
|
||||||
"precision": ["float32", "float16", "int8"],
|
"precision": ["float32", "float16", "int8"],
|
||||||
|
@ -128,7 +128,7 @@ def execute_asr(input_folder, output_folder, model_path, language, precision):
|
|||||||
)
|
)
|
||||||
text = ""
|
text = ""
|
||||||
|
|
||||||
if info.language == "zh":
|
if info.language in ["zh", "yue"]:
|
||||||
print("检测为中文文本, 转 FunASR 处理")
|
print("检测为中文文本, 转 FunASR 处理")
|
||||||
text = only_asr(file_path, language=info.language.lower())
|
text = only_asr(file_path, language=info.language.lower())
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user