fix output for mix language
This commit is contained in:
@@ -152,8 +152,7 @@ class TextPreprocessor:
|
|||||||
bert_feature = torch.cat(bert_feature_list, dim=1)
|
bert_feature = torch.cat(bert_feature_list, dim=1)
|
||||||
# phones = sum(phones_list, [])
|
# phones = sum(phones_list, [])
|
||||||
norm_text = ''.join(norm_text_list)
|
norm_text = ''.join(norm_text_list)
|
||||||
|
return phones_list, bert_feature, norm_text
|
||||||
return phones, bert_feature, norm_text
|
|
||||||
|
|
||||||
|
|
||||||
def get_bert_feature(self, text:str, word2ph:list)->torch.Tensor:
|
def get_bert_feature(self, text:str, word2ph:list)->torch.Tensor:
|
||||||
|
|||||||
Reference in New Issue
Block a user