feat(xiaozhi): 新增小智 AI 一键运行 Docker 镜像

This commit is contained in:
Del Wang
2025-05-19 00:16:49 +08:00
parent 59c3280938
commit 58acbc29f4
39 changed files with 1729 additions and 1152 deletions
-8
View File
@@ -1,18 +1,11 @@
import logging
import signal
import sys
from xiaozhi.services.audio.setup import setup_opus
from xiaozhi.utils.logging_config import setup_logging
from xiaozhi.xiaoai import XiaoAI
from xiaozhi.xiaozhi import XiaoZhi
logger = logging.getLogger("Main")
def main():
setup_opus()
logger.info("应用程序已启动,按Ctrl+C退出")
XiaoZhi.instance().run()
return 0
@@ -27,6 +20,5 @@ def setup_graceful_shutdown():
if __name__ == "__main__":
XiaoAI.setup_mode()
setup_logging()
setup_graceful_shutdown()
sys.exit(main())