fix: 1A-Dataset formatting doesn't work if using a empty 'Audio dataset folder'

This commit is contained in:
Tundra Work 2024-02-18 07:13:09 +00:00
parent 8ed4d157b3
commit f49d60d6bb

View File

@ -98,7 +98,7 @@ for line in lines[int(i_part)::int(all_parts)]:
try: try:
# wav_name,text=line.split("\t") # wav_name,text=line.split("\t")
wav_name, spk_name, language, text = line.split("|") wav_name, spk_name, language, text = line.split("|")
if (inp_wav_dir !=None): if (inp_wav_dir != ""):
wav_name = os.path.basename(wav_name) wav_name = os.path.basename(wav_name)
wav_path = "%s/%s"%(inp_wav_dir, wav_name) wav_path = "%s/%s"%(inp_wav_dir, wav_name)