From ad0870d8e1aa0f43c8480cf602b6e3106c79f96c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stardust=C2=B7=E5=87=8F?= Date: Sun, 3 Sep 2023 13:01:36 +0800 Subject: [PATCH] Update preprocess_text.py --- preprocess_text.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/preprocess_text.py b/preprocess_text.py index ca3a934..d517548 100644 --- a/preprocess_text.py +++ b/preprocess_text.py @@ -23,8 +23,8 @@ if 1 in stage: f.write('{}|{}|{}|{}|{}|{}|{}\n'.format(utt, spk, language, norm_text, ' '.join(phones), " ".join([str(i) for i in tones]), " ".join([str(i) for i in word2ph]))) - except: - print("err!", utt) + except Exception as error : + print("err!", utt, error) if 2 in stage: spk_utt_map = defaultdict(list)