From 1b9e7ead72a0b7ad4b75ea9bfc7e55a14b12400e Mon Sep 17 00:00:00 2001 From: HuYingTran Date: Fri, 14 Nov 2025 13:20:32 +0700 Subject: [PATCH] readme --- README.md | 1 + README_en.md | 1 + docker-setup-arm.sh | 8 ++++++++ docs/docker-build.md | 19 ++++++++++++++++--- 4 files changed, 26 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c8c39df7b..921bd2026 100644 --- a/README.md +++ b/README.md @@ -190,6 +190,7 @@ Spearheaded by Professor Siyuan Liu's Team (South China University of Technology |---------|------|---------|---------|---------|---------| | **最简化安装** | 智能对话、IOT、MCP、视觉感知 | 低配置环境,数据存储在配置文件,无需数据库 | [①Docker版](./docs/Deployment.md#%E6%96%B9%E5%BC%8F%E4%B8%80docker%E5%8F%AA%E8%BF%90%E8%A1%8Cserver) / [②源码部署](./docs/Deployment.md#%E6%96%B9%E5%BC%8F%E4%BA%8C%E6%9C%AC%E5%9C%B0%E6%BA%90%E7%A0%81%E5%8F%AA%E8%BF%90%E8%A1%8Cserver)| 如果使用`FunASR`要2核4G,如果全API,要2核2G | - | | **全模块安装** | 智能对话、IOT、MCP接入点、声纹识别、视觉感知、OTA、智控台 | 完整功能体验,数据存储在数据库 |[①Docker版](./docs/Deployment_all.md#%E6%96%B9%E5%BC%8F%E4%B8%80docker%E8%BF%90%E8%A1%8C%E5%85%A8%E6%A8%A1%E5%9D%97) / [②源码部署](./docs/Deployment_all.md#%E6%96%B9%E5%BC%8F%E4%BA%8C%E6%9C%AC%E5%9C%B0%E6%BA%90%E7%A0%81%E8%BF%90%E8%A1%8C%E5%85%A8%E6%A8%A1%E5%9D%97) / [③源码部署自动更新教程](./docs/dev-ops-integration.md) | 如果使用`FunASR`要4核8G,如果全API,要2核4G| [本地源码启动视频教程](https://www.bilibili.com/video/BV1wBJhz4Ewe) | +| **ARM64设备部署** | 适用于树莓派、Jetson Nano等低功耗ARM64设备 | 轻量化部署,适合开发和小规模应用 | [Docker ARM64部署](./docs/docker-build.md) | 需要树莓派4 8GB及以上配置 | - | 常见问题及相关教程,可参考[这个链接](./docs/FAQ.md) diff --git a/README_en.md b/README_en.md index 015f10547..b35c42c61 100644 --- a/README_en.md +++ b/README_en.md @@ -188,6 +188,7 @@ This project provides two deployment methods. Please choose based on your specif |---------|------|---------|---------|---------|---------| | **Simplified Installation** | Intelligent dialogue, IOT, MCP, visual perception | Low-configuration environments, data stored in config files, no database required | [①Docker Version](./docs/Deployment.md#%E6%96%B9%E5%BC%8F%E4%B8%80docker%E5%8F%AA%E8%BF%90%E8%A1%8Cserver) / [②Source Code Deployment](./docs/Deployment.md#%E6%96%B9%E5%BC%8F%E4%BA%8C%E6%9C%AC%E5%9C%B0%E6%BA%90%E7%A0%81%E5%8F%AA%E8%BF%90%E8%A1%8Cserver)| 2 cores 4GB if using `FunASR`, 2 cores 2GB if all APIs | - | | **Full Module Installation** | Intelligent dialogue, IOT, MCP endpoints, voiceprint recognition, visual perception, OTA, intelligent control console | Complete functionality experience, data stored in database |[①Docker Version](./docs/Deployment_all.md#%E6%96%B9%E5%BC%8F%E4%B8%80docker%E8%BF%90%E8%A1%8C%E5%85%A8%E6%A8%A1%E5%9D%97) / [②Source Code Deployment](./docs/Deployment_all.md#%E6%96%B9%E5%BC%8F%E4%BA%8C%E6%9C%AC%E5%9C%B0%E6%BA%90%E7%A0%81%E8%BF%90%E8%A1%8C%E5%85%A8%E6%A8%A1%E5%9D%97) / [③Source Code Deployment Auto-Update Tutorial](./docs/dev-ops-integration.md) | 4 cores 8GB if using `FunASR`, 2 cores 4GB if all APIs| [Local Source Code Startup Video Tutorial](https://www.bilibili.com/video/BV1wBJhz4Ewe) | +| **ARM64 Device Deployment** | Suitable for low-power ARM64 devices like Raspberry Pi, Jetson Nano | Lightweight deployment, ideal for development and small-scale use | [Docker ARM64 Deployment](./docs/docker-build.md) | Requires Raspberry Pi 4 with 8GB or higher | - | > 💡 Note: Below is a test platform deployed with the latest code. You can burn and test if needed. Concurrent users: 6, data will be cleared daily. diff --git a/docker-setup-arm.sh b/docker-setup-arm.sh index a76ed0de9..5418e9460 100644 --- a/docker-setup-arm.sh +++ b/docker-setup-arm.sh @@ -6,6 +6,7 @@ set -e # Exit immediately if any command fails # ==== ARM64 Banner & Author ==== echo -e "\e[1;32m" # Bright green color cat << "EOF" +Reference: VanillaNahida Author: Huynh Tran _ ____ __ __ / \ | _ \ | \/ | @@ -94,6 +95,13 @@ read -p "Please enter server.secret (leave blank to skip): " SECRET_KEY # ========== 7. Write secret-key into config ========== CONFIG_FILE="$DATA_DIR/.config.yaml" if [ -n "$SECRET_KEY" ]; then + echo "🔑 Checking if pyyaml is installed..." + if ! python3 -c "import yaml" >/dev/null 2>&1; then + echo "⚠️ Module pyyaml not found. Installing now..." + python3 -m pip install --user pyyaml + else + echo "✅ pyyaml is already installed." + fi echo "🔑 Writing secret key into $CONFIG_FILE ..." python3 - <