fix:修复长时间不说话关闭意图bug (#267)

Co-authored-by: hrz <1710360675@qq.com>
This commit is contained in:
欣南科技
2025-03-10 22:45:03 +08:00
committed by GitHub
co-authored by hrz
parent 7b266ad7c0
commit 4f3fae81c1
@@ -70,5 +70,6 @@ async def no_voice_close_connect(conn):
if no_voice_time > 1000 * close_connection_no_voice_time:
conn.client_abort = False
conn.asr_server_receive = False
conn.close_after_chat = True
prompt = "时间过得真快,我都好久没说话了。请你用十个字左右话跟我告别,以“再见”或“拜拜”为结尾"
await startToChat(conn, prompt)