diff --git a/src/edge_tts/submaker.py b/src/edge_tts/submaker.py index 9a4a30b..c469b9c 100644 --- a/src/edge_tts/submaker.py +++ b/src/edge_tts/submaker.py @@ -145,9 +145,7 @@ def generate_subs_based_on_punc(self, text) -> str: # return text_list def clause(self) -> list[str]: - # 构建正则表达式模式,匹配任意一个或多个标点符号 pattern = '(' + '|'.join(punc for punc in PUNCTUATION) + ')' - # 使用正则表达式分割文本 text_list = re.split(pattern, text) index = 0 diff --git a/src/streaming_with_cn_subtitles.py b/src/streaming_with_new_subtitles_test.py similarity index 100% rename from src/streaming_with_cn_subtitles.py rename to src/streaming_with_new_subtitles_test.py