mirror of https://github.com/coqui-ai/TTS.git
Fix formatter
This commit is contained in:
parent
5857941043
commit
1f23c6f106
|
@ -376,9 +376,10 @@ def synpaflex(root_path, meta_files=None, wavs_path=None, ignored_speakers=None)
|
|||
txt_file = wav_file.replace("wav", "txt")
|
||||
else:
|
||||
txt_file = os.path.join(os.path.dirname(wav_file), "txt", os.path.basename(wav_file).replace(".wav", ".txt"))
|
||||
with open(txt_file, "r", encoding="utf-8") as file_text:
|
||||
text = file_text.readlines()[0]
|
||||
items.append({"text": text, "audio_file": wav_file, "speaker_name": speaker_name})
|
||||
if os.path.exists(txt_file) and os.path.exists(wav_file):
|
||||
with open(txt_file, "r", encoding="utf-8") as file_text:
|
||||
text = file_text.readlines()[0]
|
||||
items.append({"text": text, "audio_file": wav_file, "speaker_name": speaker_name})
|
||||
return items
|
||||
|
||||
def open_bible(root_path, meta_files="train", ignore_digits_sentences=True, ignored_speakers=None):
|
||||
|
|
Loading…
Reference in New Issue