mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-24 08:03:53 +08:00
fix: 修复当手动设备上个会话正常结束后,使用唤醒词唤醒音频播放不完整
This commit is contained in:
@@ -148,10 +148,9 @@ def _get_or_create_rate_controller(conn, frame_duration, is_single_packet):
|
||||
or rate_controller.pending_send_task.done()
|
||||
):
|
||||
need_reset = True
|
||||
# 流式单包模式下, sentence_id 变化, 需要重置
|
||||
# 当sentence_id 变化,需要重置
|
||||
elif (
|
||||
is_single_packet
|
||||
and getattr(conn, "audio_flow_control", {}).get("sentence_id")
|
||||
getattr(conn, "audio_flow_control", {}).get("sentence_id")
|
||||
!= conn.sentence_id
|
||||
):
|
||||
need_reset = True
|
||||
|
||||
Reference in New Issue
Block a user