Update and rename spec_gen.py to bert_gen.py

This commit is contained in:
Stardust·减
2023-09-01 10:34:57 +08:00
committed by GitHub
parent 4c35709d22
commit 07a34c1a86

View File

@@ -17,7 +17,6 @@ def process_line(line):
phone = phones.split(" ") phone = phones.split(" ")
tone = [int(i) for i in tone.split(" ")] tone = [int(i) for i in tone.split(" ")]
word2ph = [int(i) for i in word2ph.split(" ")] word2ph = [int(i) for i in word2ph.split(" ")]
# print(text, word2ph,phone, tone, language_str)
w2pho = [i for i in word2ph] w2pho = [i for i in word2ph]
word2ph = [i for i in word2ph] word2ph = [i for i in word2ph]
phone, tone, language = cleaned_text_to_sequence(phone, tone, language_str) phone, tone, language = cleaned_text_to_sequence(phone, tone, language_str)