update:常用音频增加缓存,抵御高并发未授权设备访问

This commit is contained in:
hrz
2025-12-13 23:10:40 +08:00
parent 8b2bbec0b9
commit 5c261528d0
3 changed files with 27 additions and 3 deletions
@@ -101,7 +101,7 @@ async def checkWakeupWords(conn, text):
}
# 获取音频数据
opus_packets = await audio_to_data(response.get("file_path"))
opus_packets = await audio_to_data(response.get("file_path"), use_cache=False)
# 播放唤醒词回复
conn.client_abort = False