RVC-Boss / GPT-SoVITS

1 min voice data can also be used to train a good TTS model! (few shot voice cloning)
MIT License
33.49k stars 3.84k forks source link

Bert feature only for Chinese? #1185

Open chongxi opened 3 months ago

chongxi commented 3 months ago
def get_bert_inf(phones, word2ph, norm_text, language):
    language=language.replace("all_","")
    if language == "zh":
        bert = get_bert_feature(norm_text, word2ph).to(device)#.to(dtype)
    else:
        bert = torch.zeros(
            (1024, len(phones)),
            dtype=torch.float16 if is_half == True else torch.float32,
        ).to(device)

    return bert

According to this code, bert is only calculated when then language is Chinese?

XXXXRT666 commented 3 months ago

Yes

RVC-Boss commented 3 months ago

Yes