update:测试页面增加OTA地址 (#842)

This commit is contained in:
hrz
2025-04-16 16:44:44 +08:00
committed by GitHub
parent d1b7cb6a36
commit 7a0cf5ef9a
5 changed files with 397 additions and 90 deletions
@@ -81,6 +81,8 @@ async def wakeupWordsResponse(conn):
"""唤醒词响应"""
wakeup_word = random.choice(WAKEUP_CONFIG["words"])
result = conn.llm.response_no_stream(conn.config["prompt"], wakeup_word)
if result is None or result == "":
return
tts_file = await asyncio.to_thread(conn.tts.to_tts, result)
if tts_file is not None and os.path.exists(tts_file):