mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-24 04:19:48 +01:00
feat(server): 使用主动退出指令时显示到设备上
This commit is contained in:
parent
1f3654cc01
commit
d02c56a0e0
1 changed files with 1 additions and 0 deletions
|
|
@ -37,6 +37,7 @@ async def check_direct_exit(conn, text):
|
|||
for cmd in cmd_exit:
|
||||
if text == cmd:
|
||||
logger.bind(tag=TAG).info(f"识别到明确的退出命令: {text}")
|
||||
await send_stt_message(conn, text)
|
||||
await conn.close()
|
||||
return True
|
||||
return False
|
||||
|
|
|
|||
Loading…
Reference in a new issue