update:完成2分钟不说话,自动断开连接的功能

This commit is contained in:
hrz
2025-02-16 20:42:55 +08:00
parent 4e29a5a37b
commit 6b1488bc3a
3 changed files with 20 additions and 0 deletions
+1
View File
@@ -52,6 +52,7 @@ class ConnectionHandler:
self.client_audio_buffer = bytes()
self.client_have_voice = False
self.client_have_voice_last_time = 0.0
self.client_no_voice_last_time = 0.0
self.client_voice_stop = False
# asr相关变量