keshan commited on
Commit
d8458d5
1 Parent(s): 7110f02

Update multispeaker-tts-sinhala.py

Browse files

fixing sentence, wav file name switch

Files changed (1) hide show
  1. multispeaker-tts-sinhala.py +3 -1
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
- id_value, sentence = line.strip().split("\t")
 
 
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)