mirror of https://github.com/coqui-ai/TTS.git
fix error mshg grammar
This commit is contained in:
parent
ff295c6524
commit
b5f61d81c0
|
@ -120,7 +120,7 @@ def mailabs(root_path, meta_files=None):
|
||||||
text = cols[1].strip()
|
text = cols[1].strip()
|
||||||
items.append([text, wav_file, speaker_name])
|
items.append([text, wav_file, speaker_name])
|
||||||
else:
|
else:
|
||||||
raise RuntimeError("> File %s is not exist!"%(wav_file))
|
raise RuntimeError("> File %s does not exist!"%(wav_file))
|
||||||
return items
|
return items
|
||||||
|
|
||||||
|
|
||||||
|
@ -185,7 +185,7 @@ def libri_tts(root_path, meta_files=None):
|
||||||
text = cols[1]
|
text = cols[1]
|
||||||
items.append([text, wav_file, speaker_name])
|
items.append([text, wav_file, speaker_name])
|
||||||
for item in items:
|
for item in items:
|
||||||
assert os.path.exists(item[1]), f" [!] wav file is not exist - {item[1]}"
|
assert os.path.exists(item[1]), f" [!] wav files don't exist - {item[1]}"
|
||||||
return items
|
return items
|
||||||
|
|
||||||
|
|
||||||
|
@ -203,5 +203,5 @@ def custom_turkish(root_path, meta_file):
|
||||||
continue
|
continue
|
||||||
text = cols[1].strip()
|
text = cols[1].strip()
|
||||||
items.append([text, wav_file, speaker_name])
|
items.append([text, wav_file, speaker_name])
|
||||||
print(f" [!] {len(skipped_files)} files skipped. They are not exist...")
|
print(f" [!] {len(skipped_files)} files skipped. They don't exist...")
|
||||||
return items
|
return items
|
||||||
|
|
Loading…
Reference in New Issue