Add: Support for speech synthesis in English and Chinese for ONNX inference in Non-JP-Extra models

This commit is contained in:
tsukumi
2024-09-23 07:14:44 +09:00
parent fe253611d3
commit dcca37b9a8
20 changed files with 342182 additions and 16 deletions

View File

@@ -81,6 +81,10 @@ def extract_bert_feature_onnx(
if language == Languages.JP:
from style_bert_vits2.nlp.japanese.bert_feature import extract_bert_feature_onnx
elif language == Languages.EN:
from style_bert_vits2.nlp.english.bert_feature import extract_bert_feature_onnx
elif language == Languages.ZH:
from style_bert_vits2.nlp.chinese.bert_feature import extract_bert_feature_onnx
else:
raise ValueError(f"Language {language} not supported")