update: 阿里百炼流式TTS 减少调试日志显示

fix: 音频发送误差修正
This commit is contained in:
Sakura-RanChen
2025-09-16 17:07:00 +08:00
parent 334dfc7917
commit c2985c0db3
8 changed files with 601 additions and 11 deletions
@@ -331,15 +331,6 @@ class TTSProviderBase(ABC):
# 收到下一个文本开始或会话结束时进行上报
if sentence_type is not SentenceType.MIDDLE:
# 重置音频流控状态(新句子开始或者结束)
if hasattr(self.conn, 'audio_flow_control'):
self.conn.audio_flow_control = {
'last_send_time': 0,
'packet_count': 0,
'start_time': time.perf_counter(),
'sequence': 0 # 添加序列号
}
# 上报TTS数据
if enqueue_text is not None and enqueue_audio is not None:
enqueue_tts_report(self.conn, enqueue_text, enqueue_audio)