From a0b0a0e1e8c8a34c7069a00d2a7f966bfaca62f7 Mon Sep 17 00:00:00 2001 From: hrz <1710360675@qq.com> Date: Fri, 30 May 2025 02:16:39 +0800 Subject: [PATCH] =?UTF-8?q?update:=E4=BC=98=E5=8C=96=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/xiaozhi-server/core/handle/reportHandle.py | 3 ++- main/xiaozhi-server/core/providers/asr/doubao.py | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/main/xiaozhi-server/core/handle/reportHandle.py b/main/xiaozhi-server/core/handle/reportHandle.py index b1214fd5..7b30f79c 100644 --- a/main/xiaozhi-server/core/handle/reportHandle.py +++ b/main/xiaozhi-server/core/handle/reportHandle.py @@ -8,6 +8,7 @@ TTS上报功能已集成到ConnectionHandler类中。 具体实现请参考core/connection.py中的相关代码。 """ + import time import opuslib_next @@ -145,4 +146,4 @@ def enqueue_asr_report(conn, text, opus_data): f"ASR数据已加入上报队列: {conn.device_id}, 不上报音频" ) except Exception as e: - conn.logger.bind(tag=TAG).error(f"加入ASR上报队列失败: {text}, {e}") + conn.logger.bind(tag=TAG).debug(f"加入ASR上报队列失败: {text}, {e}") diff --git a/main/xiaozhi-server/core/providers/asr/doubao.py b/main/xiaozhi-server/core/providers/asr/doubao.py index 96abdff3..9ef1d411 100644 --- a/main/xiaozhi-server/core/providers/asr/doubao.py +++ b/main/xiaozhi-server/core/providers/asr/doubao.py @@ -107,7 +107,6 @@ class ASRProvider(ASRProviderBase): # 等待初始化响应 try: init_res = await self.asr_ws.recv() - logger.bind(tag=TAG).debug(f"收到原始响应: {init_res}") result = self.parse_response(init_res) logger.bind(tag=TAG).info(f"ASR服务初始化响应: {result}") except Exception as e: @@ -328,7 +327,6 @@ class ASRProvider(ASRProviderBase): self.retry_delay ) # 继续等待,以便后续重试 except Exception as e: - logger.bind(tag=TAG).error(f"处理ASR结果时发生错误: {e}") if not self.conn.stop_event.is_set(): await asyncio.sleep(2) # 增加重试延迟 except Exception as e: