fixing a backslash issue in f string
Browse files
multispeaker-tts-sinhala.py
CHANGED
@@ -90,7 +90,7 @@ class SiTTS(datasets.GeneratorBasedBuilder):
|
|
90 |
|
91 |
for id_, line in enumerate(lines):
|
92 |
sentence = re.findall(r'"(.*?)"', line)[0].strip()
|
93 |
-
file_path =
|
94 |
field_values = [sentence, file_path]
|
95 |
|
96 |
# set absolute path for wav audio file
|
|
|
90 |
|
91 |
for id_, line in enumerate(lines):
|
92 |
sentence = re.findall(r'"(.*?)"', line)[0].strip()
|
93 |
+
file_path = "{0}.wav".format(re.findall(r"(sin_[^\s]+)", line)[0])
|
94 |
field_values = [sentence, file_path]
|
95 |
|
96 |
# set absolute path for wav audio file
|