update:优化火山引擎双流TTS连接方式

This commit is contained in:
hrz
2025-06-02 17:03:53 +08:00
parent 2d7d75c290
commit ee65032f7d
3 changed files with 203 additions and 339 deletions
@@ -178,6 +178,9 @@ class TTSProviderBase(ABC):
while not self.conn.stop_event.is_set():
try:
message = self.tts_text_queue.get(timeout=1)
if self.conn.client_abort:
logger.bind(tag=TAG).info("收到打断信息,终止TTS文本处理线程")
continue
if message.sentence_type == SentenceType.FIRST:
# 初始化参数
self.tts_stop_request = False