Skip to content

Commit

Permalink
Update data_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Stardust-minus authored Sep 30, 2023
1 parent 1928118 commit 7b15665
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ def get_text(self, text, word2ph, phone, tone, language_str, wav_path):
bert = torch.load(bert_path)
assert bert.shape[-1] == len(phone)
elif language_str == "JP":
bert = torch.load(bert_path)
bert = get_bert_train(text_normalize(text), bert, word2ph, tokenizer)
assert bert.shape[-1] == len(phone), f"length of phonemes does not match input length of bert:{phone}, {bert.shape}"
except Exception as e:
Expand Down

0 comments on commit 7b15665

Please sign in to comment.