Update preprocess_text.py

This commit is contained in:
Stardust·减
2023-09-03 13:01:36 +08:00
committed by GitHub
parent 95cfacc76c
commit ad0870d8e1

View File

@@ -23,8 +23,8 @@ if 1 in stage:
f.write('{}|{}|{}|{}|{}|{}|{}\n'.format(utt, spk, language, norm_text, ' '.join(phones), f.write('{}|{}|{}|{}|{}|{}|{}\n'.format(utt, spk, language, norm_text, ' '.join(phones),
" ".join([str(i) for i in tones]), " ".join([str(i) for i in tones]),
" ".join([str(i) for i in word2ph]))) " ".join([str(i) for i in word2ph])))
except: except Exception as error :
print("err!", utt) print("err!", utt, error)
if 2 in stage: if 2 in stage:
spk_utt_map = defaultdict(list) spk_utt_map = defaultdict(list)