update: aliyun双流改造 待优化长连接机制和文本生成反馈为空

This commit is contained in:
Sakura-RanChen
2025-07-11 11:36:58 +08:00
parent 26a3b51162
commit 23cd453af8
4 changed files with 329 additions and 424 deletions
@@ -159,7 +159,7 @@ class TTSProviderBase(ABC):
if conn.sentence_id:
sentence_id = conn.sentence_id
else:
sentence_id = str(uuid.uuid4()).replace("-", "")
sentence_id = str(uuid.uuid4().hex)
conn.sentence_id = sentence_id
# 对于单句的文本,进行分段处理
segments = re.split(r"([。!?!?;\n])", content_detail)