Merge pull request #1488 from xinnan-tech/fix-wakeup-bug

update:修复被唤醒词打断bug
This commit is contained in:
欣南科技 2025-06-05 20:55:28 +08:00 committed by GitHub
commit 6023af2f21
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: