mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-22 07:03:53 +08:00
@@ -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()
|
||||
_wakeup_response_lock.release()
|
||||
|
||||
Reference in New Issue
Block a user