Merge pull request #1173 from xinnan-tech/hot-fix

update:修复立创1.6.2固件一直聆听中bug
This commit is contained in:
欣南科技 2025-05-10 01:15:38 +08:00 committed by GitHub
commit 3f7b7da184
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,7 +16,7 @@ async def handleAudioMessage(conn, audio):
if not conn.asr_server_receive:
conn.logger.bind(tag=TAG).debug(f"前期数据处理中,暂停接收")
return
if conn.client_listen_mode == "auto":
if conn.client_listen_mode == "auto" or conn.client_listen_mode == "realtime":
have_voice = conn.vad.is_vad(conn, audio)
else:
have_voice = conn.client_have_voice