mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-24 04:19:48 +01:00
update:修复被唤醒词打断bug
This commit is contained in:
parent
c1dfb540a3
commit
2cd90d8066
1 changed files with 1 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ async def handleAudioMessage(conn, audio):
|
|||
if hasattr(conn, "just_woken_up") and conn.just_woken_up:
|
||||
have_voice = False
|
||||
# 设置一个短暂延迟后恢复VAD检测
|
||||
conn.asr_audio.clear()
|
||||
asyncio.create_task(resume_vad_detection(conn))
|
||||
|
||||
if have_voice:
|
||||
|
|
|
|||
Loading…
Reference in a new issue