Fix typing of arguments (Languages class)

This commit is contained in:
litagin02
2024-03-13 18:45:25 +09:00
parent 67f19ba627
commit dd407d882d

View File

@@ -50,7 +50,9 @@ def process_line(x: tuple[str, bool]):
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(" ")]
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, Languages[language_str]
)
if add_blank: if add_blank:
phone = commons.intersperse(phone, 0) phone = commons.intersperse(phone, 0)