fix: 修复队列恢复时音频播放时间错乱问题

This commit is contained in:
Sakura-RanChen
2026-03-19 16:18:30 +08:00
parent 4747e54f6c
commit 73d174bc4a
2 changed files with 16 additions and 0 deletions
@@ -280,6 +280,8 @@ async def send_tts_message(conn: "ConnectionHandler", state, text=None):
await sendAudio(conn, audios)
# 等待所有音频包发送完成
await _wait_for_audio_completion(conn)
# 停止音频发送循环
conn.audio_rate_controller.stop_sending()
# 清除服务端讲话状态
conn.clearSpeakStatus()