diff --git a/main/xiaozhi-server/core/connection.py b/main/xiaozhi-server/core/connection.py index 6460643d..e4510286 100644 --- a/main/xiaozhi-server/core/connection.py +++ b/main/xiaozhi-server/core/connection.py @@ -96,10 +96,9 @@ class ConnectionHandler: # 依赖的组件 self.vad = None self.asr = None - self.tts = None self._asr = _asr self._vad = _vad - self._tts = _tts + self.tts = _tts self.llm = _llm self.memory = _memory self.intent = _intent diff --git a/main/xiaozhi-server/core/providers/tts/base.py b/main/xiaozhi-server/core/providers/tts/base.py index 2ae01acc..2264492d 100644 --- a/main/xiaozhi-server/core/providers/tts/base.py +++ b/main/xiaozhi-server/core/providers/tts/base.py @@ -38,7 +38,21 @@ class TTSProviderBase(ABC): ";", ":", ) - self.first_sentence_punctuations = (",", ",") + self.first_sentence_punctuations = ( + ",", + "~", + "、", + ",", + "。", + ".", + "?", + "?", + "!", + "!", + ";", + ";", + ":", + ) self.tts_stop_request = False self.processed_chars = 0 self.is_first_sentence = True