update:优化

This commit is contained in:
hrz
2025-05-24 23:43:16 +08:00
parent 574d34bc2c
commit 7a598d5839
6 changed files with 32 additions and 158 deletions
@@ -91,7 +91,7 @@ async def wakeupWordsResponse(conn):
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)
tts_file = await asyncio.to_thread(conn.tts.to_tts, result, 0)
if tts_file is not None and os.path.exists(tts_file):
file_type = os.path.splitext(tts_file)[1]