From 3c4f5462eb3f1ede93c5bb10e1557dd6cb764797 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=82=A6?= Date: Mon, 10 Jun 2024 13:28:45 +0800 Subject: [PATCH] Update TextPreprocessor.py --- GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py b/GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py index 58b2678..6f1ffa5 100644 --- a/GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py +++ b/GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py @@ -57,6 +57,8 @@ class TextPreprocessor: texts = self.pre_seg_text(text, lang, text_split_method) result = [] print(i18n("############ 提取文本Bert特征 ############")) + with open('./srt/tts-out.txt', 'w', encoding='utf-8') as f: + f.write(str(texts)) for text in tqdm(texts): phones, bert_features, norm_text = self.segment_and_extract_feature_for_text(text, lang) if phones is None: