# 视频教程:小智ai服务端本地部署完整教程,支持DeepSeek接入 https://www.bilibili.com/video/BV1GvQWYZEd2/ # 固件开源地址 https://github.com/78/xiaozhi-esp32 # 服务端开源地址 https://github.com/xinnan-tech/xiaozhi-esp32-server # Windows搭建 ESP IDF 5.3.2开发环境以及编译小智 https://icnynnzcwou8.feishu.cn/wiki/JEYDwTTALi5s2zkGlFGcDiRknXf # Git下载 git clone https://github.com/xinnan-tech/xiaozhi-esp32-server.git # 小智 AI 聊天机器人百科全书 https://ccnphfhqs21z.feishu.cn/wiki/F5krwD16viZoF0kKkvDcrZNYnhb # 购买店铺链接 https://docs.qq.com/sheet/DWmRhbnVHSnRWc2xz?tab=vajqu5 #添加清华源通道【如果需要要的话】 conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge # 一、部署 conda remove -n xiaozhi-esp32-server --all -y conda create -n xiaozhi-esp32-server python=3.10 -y conda activate xiaozhi-esp32-server # 安装音频处理工具,录制,转码,剪辑等 # 下载libopus_v1.4_msvc17.zip https://github.com/ShiftMediaProject/opus/releases 解压找到X64文件下的opus.dll,并复制路径 添加代码至步骤1的红框位置处保存文件 这个错误是因为缺少 Opus 音频编解码器库。Opus 是一个开源的音频编解码器,需要先安装才能使用 opuslib_next 包。 在 Windows 系统上,你可以按照以下步骤安装: 首先,从 Opus 官方网站下载 Windows 版本的 DLL 文件: 访问 https://opus-codec.org/downloads/ 下载 Windows 版本的 DLL 文件(通常是 opus.dll) 将下载的 DLL 文件放在以下位置之一: 系统目录(如 C:\Windows\System32) 或者放在你的 Python 项目的根目录下 或者放在 Python 环境的 DLL 目录下(如 D:\anaconda3\envs\xiaozhi-esp32-server\DLLs) 确保系统环境变量 PATH 中包含 DLL 文件所在的目录 if lib_location is None: lib_location = r'D:\anaconda3\envs\xiaozhi-esp32-server\Lib\site-packages\libopus_v1.4_msvc17\bin\x64\opus.dll' #conda install libopus -y conda install -c conda-forge opus # 音频的编码解码库 conda install ffmpeg -y #进入到你的项目根目录,再进入main/xiaozhi-server d: cd D:\dsWork\QingLong\XiaoZhi\xiaozhi-esp32-server\main\xiaozhi-server pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/ pip install -r requirements.txt # 二、下载语音识别模型文件 下载地址:https://pan.baidu.com/share/init?surl=QlgM58FHhYv1tFnUT_A8Sg&pwd=qvna 将model.pt 放到 D:\dsWork\QingLong\XiaoZhi\xiaozhi-esp32-server\main\xiaozhi-server\models\SenseVoiceSmall # 三、配置项目 如果你的xiaozhi-server目录没有data,你需要创建data目录。如果你的data下面没有.config.yaml文件,你可以把源码目录下的config.yaml文件复制一份,重命名为.config.yaml # 四、JAVA项目部署 # 五、注册 http://10.10.21.20:8001/#/home huanghai DsideaL@123