From b4d1e780eca1cea04472d770c3f8ccad155320ec Mon Sep 17 00:00:00 2001 From: HuangHai <10402852@qq.com> Date: Mon, 14 Apr 2025 15:40:36 +0800 Subject: [PATCH] 'commit' --- .../src/main/resources/application-dev.yml | 8 ++--- .../main/manager-web/package-lock.json | 2 +- XiaoZhi/文档.txt | 32 ++++++++++++++++++- 3 files changed, 36 insertions(+), 6 deletions(-) diff --git a/XiaoZhi/xiaozhi-esp32-server/main/manager-api/src/main/resources/application-dev.yml b/XiaoZhi/xiaozhi-esp32-server/main/manager-api/src/main/resources/application-dev.yml index b49b31ca..5209c779 100644 --- a/XiaoZhi/xiaozhi-esp32-server/main/manager-api/src/main/resources/application-dev.yml +++ b/XiaoZhi/xiaozhi-esp32-server/main/manager-api/src/main/resources/application-dev.yml @@ -12,9 +12,9 @@ spring: druid: #MySQL driver-class-name: com.mysql.cj.jdbc.Driver - url: jdbc:mysql://127.0.0.1:3306/xiaozhi_esp32_server?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true + url: jdbc:mysql://10.10.14.203:3306/xiaozhi_esp32_server?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true username: root - password: 123456 + password: Password123@mysql initial-size: 10 max-active: 100 min-idle: 10 @@ -38,8 +38,8 @@ spring: multi-statement-allow: true data: redis: - host: 127.0.0.1 # Redis服务器地址 - port: 6379 # Redis服务器连接端口 + host: 10.10.14.14 # Redis服务器地址 + port: 18890 # Redis服务器连接端口 password: # Redis服务器连接密码(默认为空) database: 0 # Redis数据库索引(默认为0) timeout: 10000ms # 连接超时时间(毫秒) diff --git a/XiaoZhi/xiaozhi-esp32-server/main/manager-web/package-lock.json b/XiaoZhi/xiaozhi-esp32-server/main/manager-web/package-lock.json index f84c4950..54610c6d 100644 --- a/XiaoZhi/xiaozhi-esp32-server/main/manager-web/package-lock.json +++ b/XiaoZhi/xiaozhi-esp32-server/main/manager-web/package-lock.json @@ -8847,4 +8847,4 @@ } } } -} \ No newline at end of file +} diff --git a/XiaoZhi/文档.txt b/XiaoZhi/文档.txt index 10f3a81f..a5ef14dc 100644 --- a/XiaoZhi/文档.txt +++ b/XiaoZhi/文档.txt @@ -25,7 +25,30 @@ conda create -n xiaozhi-esp32-server python=3.10 -y conda activate xiaozhi-esp32-server # 安装音频处理工具,录制,转码,剪辑等 -conda install libopus -y + +# 下载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 @@ -44,3 +67,10 @@ pip install -r requirements.txt # 三、配置项目 如果你的xiaozhi-server目录没有data,你需要创建data目录。如果你的data下面没有.config.yaml文件,你可以把源码目录下的config.yaml文件复制一份,重命名为.config.yaml + +# 四、JAVA项目部署 + +# 五、注册 +http://10.10.21.20:8001/#/home +huanghai +DsideaL@123 \ No newline at end of file