From 0d54936a1c87981e05766e5c5dc37b0e657bbc6a Mon Sep 17 00:00:00 2001 From: CyberWon Date: Mon, 10 Jun 2024 17:24:03 +0800 Subject: [PATCH] Update TextPreprocessor.py --- GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py b/GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py index 2cc0023c..12bf2d8b 100644 --- a/GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py +++ b/GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py @@ -56,7 +56,7 @@ class TextPreprocessor: def preprocess(self, text:str, lang:str, text_split_method:str)->List[Dict]: print(i18n("############ 切分文本 ############")) - texts = self.replace_consecutive_punctuation(texts) + text = self.replace_consecutive_punctuation(text) texts = self.pre_seg_text(text, lang, text_split_method) result = [] print(i18n("############ 提取文本Bert特征 ############"))