Update multispeaker-tts-sinhala.py
Browse filesfixing sentence, wav file name switch
multispeaker-tts-sinhala.py
CHANGED
@@ -89,7 +89,9 @@ class SiTTS(datasets.GeneratorBasedBuilder):
|
|
89 |
lines = f.readlines()
|
90 |
|
91 |
for id_, line in enumerate(lines):
|
92 |
-
|
|
|
|
|
93 |
# sentence = re.findall(r'"(.*?)"', line)[0].strip()
|
94 |
# id_value = re.findall(r"(sin_[^\s]+)", line)[0]
|
95 |
file_path = "{0}.wav".format(id_value)
|
|
|
89 |
lines = f.readlines()
|
90 |
|
91 |
for id_, line in enumerate(lines):
|
92 |
+
if id_ == 0:
|
93 |
+
continue
|
94 |
+
sentence, id_value = line.strip().split(" ")
|
95 |
# sentence = re.findall(r'"(.*?)"', line)[0].strip()
|
96 |
# id_value = re.findall(r"(sin_[^\s]+)", line)[0]
|
97 |
file_path = "{0}.wav".format(id_value)
|