From 44f41ebd113b71d75ee61bee4d9bae1a41b2a301 Mon Sep 17 00:00:00 2001 From: hrz <1710360675@qq.com> Date: Sun, 12 Oct 2025 23:24:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=9B=9E=E5=A4=8D=E8=AF=8D=E5=A4=AA?= =?UTF-8?q?=E7=9F=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/xiaozhi-server/core/handle/helloHandle.py | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/main/xiaozhi-server/core/handle/helloHandle.py b/main/xiaozhi-server/core/handle/helloHandle.py index df8376b6..0c13ea1d 100644 --- a/main/xiaozhi-server/core/handle/helloHandle.py +++ b/main/xiaozhi-server/core/handle/helloHandle.py @@ -17,11 +17,17 @@ from core.providers.tools.device_mcp import ( TAG = __name__ WAKEUP_CONFIG = { - "refresh_time": 5, - "words": ["你好", "你好啊", "嘿,你好", "嗨"], + "refresh_time": 10, "responses": [ - "我在", "在的呢", "在的哦", "来啦", "你说", "请讲", - "听着呢", "请说", "需要我做些什么", "请指示" + "我一直都在呢,您请说。", + "在的呢,请随时吩咐我。", + "来啦来啦,请告诉我吧。", + "您请说,我正听着。", + "请您讲话,我准备好了。", + "请您说出指令吧。", + "我认真听着呢,请讲。", + "请问您需要什么帮助?", + "我在这里,等候您的指令。", ], } @@ -77,7 +83,6 @@ async def checkWakeupWords(conn, text): return False conn.just_woken_up = True - await send_stt_message(conn, text) # 获取当前音色 voice = getattr(conn.tts, "voice", "default") @@ -144,4 +149,4 @@ async def wakeupWordsResponse(conn): finally: # 确保在任何情况下都释放锁 if _wakeup_response_lock.locked(): - _wakeup_response_lock.release() \ No newline at end of file + _wakeup_response_lock.release()