mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-29 05:09:46 +01:00
fix:修复长时间不说话关闭意图bug
This commit is contained in:
parent
7b266ad7c0
commit
9ac892819f
1 changed files with 1 additions and 0 deletions
|
|
@ -70,5 +70,6 @@ async def no_voice_close_connect(conn):
|
||||||
if no_voice_time > 1000 * close_connection_no_voice_time:
|
if no_voice_time > 1000 * close_connection_no_voice_time:
|
||||||
conn.client_abort = False
|
conn.client_abort = False
|
||||||
conn.asr_server_receive = False
|
conn.asr_server_receive = False
|
||||||
|
conn.close_after_chat = True
|
||||||
prompt = "时间过得真快,我都好久没说话了。请你用十个字左右话跟我告别,以“再见”或“拜拜”为结尾"
|
prompt = "时间过得真快,我都好久没说话了。请你用十个字左右话跟我告别,以“再见”或“拜拜”为结尾"
|
||||||
await startToChat(conn, prompt)
|
await startToChat(conn, prompt)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue