Skip to content

Commit

Permalink
fix hps
Browse files Browse the repository at this point in the history
  • Loading branch information
Stardust-minus committed Oct 5, 2023
1 parent 8beaf32 commit f046571
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions bert_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,12 @@ def process_line(line):
word2ph = [i for i in word2ph]
phone, tone, language = cleaned_text_to_sequence(phone, tone, language_str)

if hps.data.add_blank:
phone = commons.intersperse(phone, 0)
tone = commons.intersperse(tone, 0)
language = commons.intersperse(language, 0)
for i in range(len(word2ph)):
word2ph[i] = word2ph[i] * 2
word2ph[0] += 1
phone = commons.intersperse(phone, 0)
tone = commons.intersperse(tone, 0)
language = commons.intersperse(language, 0)
for i in range(len(word2ph)):
word2ph[i] = word2ph[i] * 2
word2ph[0] += 1

bert_path = wav_path.replace(".wav", ".bert.pt")

Expand Down

0 comments on commit f046571

Please sign in to comment.