Merge branch 'main' into test-server-pr

This commit is contained in:
欣南科技
2025-03-31 23:28:37 +08:00
committed by GitHub
20 changed files with 924 additions and 119 deletions
@@ -58,7 +58,7 @@ def getWakeupWordFile(file_name):
for file in os.listdir(WAKEUP_CONFIG["dir"]):
if file.startswith("my_" + file_name):
"""避免缓存文件是一个空文件"""
if os.stat(f"config/assets/{file}").st_size > (5 * 1024):
if os.stat(f"config/assets/{file}").st_size > (15 * 1024):
return f"config/assets/{file}"
"""查找config/assets/目录下名称为wakeup_words的文件"""