fix:local variable 'response' referenced before assignment

This commit is contained in:
hrz
2025-06-02 21:06:51 +08:00
parent ee65032f7d
commit fd4193daab
2 changed files with 9 additions and 4 deletions
@@ -74,6 +74,8 @@ async def checkWakeupWords(conn, text):
text_hello = WAKEUP_CONFIG["text"]
if not text_hello:
text_hello = text
if conn.tts is None:
return False
conn.tts.tts_one_sentence(
conn, ContentType.FILE, content_file=file, content_detail=text_hello
)