Add files via upload

This commit is contained in:
RVC-Boss 2024-02-07 17:47:38 +08:00 committed by GitHub
parent 1d70584ac9
commit 94ee71d9d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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