From dad21c41c9bb93eab9a4423d85659c63d7f6ed79 Mon Sep 17 00:00:00 2001 From: hrz <1710360675@qq.com> Date: Sat, 8 Feb 2025 13:26:31 +0800 Subject: [PATCH] =?UTF-8?q?fixed:windows=E5=B9=B3=E5=8F=B0opus=E5=8C=85?= =?UTF-8?q?=E7=BC=BA=E5=A4=B1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 17 ++++++++++++++--- README_en.md | 18 +++++++++++++++++- 2 files changed, 31 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0b1a8ce8..b17634af 100644 --- a/README.md +++ b/README.md @@ -162,13 +162,22 @@ docker rmi ccr.ccs.tencentyun.com/xinnan/xiaozhi-esp32-server:latest ### 1.安装基础环境 -本项目依赖`ffmpeg`、`libopus-dev`、`conda`,安装好后开始执行以下命令。 - +本项目使用`conda`管理依赖环境,安装好后开始执行以下命令。 ``` conda remove -n xiaozhi-esp32-server --all -y conda create -n xiaozhi-esp32-server python=3.10 -y conda activate xiaozhi-esp32-server ``` +如果你的电脑是windows,执行: +``` +conda activate xiaozhi-esp32-server +conda install conda-forge::libopus +conda install conda-forge::ffmpeg +``` +如果你的电脑是ubuntu,执行: +``` +apt-get install libopus0 ffmpeg +``` ### 2.安装本项目依赖 @@ -350,4 +359,6 @@ VAD: - 本项目受[百聆语音对话机器人](https://github.com/wwbin2017/bailing)项目启发,基于该项目的基础思路完成实现。 - 感谢[腾讯云](https://cloud.tencent.com/)为本次项目提供免费docker镜像空间。 -- 感谢[十方融海](https://www.tenclass.com/)在小智通讯协议上提供充分的文档支持。 \ No newline at end of file +- 感谢[十方融海](https://www.tenclass.com/)在小智通讯协议上提供充分的文档支持。 + +[![Star History Chart](https://api.star-history.com/svg?repos=xiaozhi-esp32-server/xiaozhi-esp32-server&type=Date)](https://star-history.com/#xiaozhi-esp32-server/xiaozhi-esp32-server&Date) diff --git a/README_en.md b/README_en.md index 531b77d7..01c704df 100644 --- a/README_en.md +++ b/README_en.md @@ -172,7 +172,7 @@ is very useful, and it is required to `compile esp32 firmware` later. ### 1.Install Prerequisites -This project relies on `ffmpeg`, `libopus-dev`, and `conda`. After installation, it starts executing the following +This project uses `conda` to manage the dependent environment, and after installation, it starts executing the following commands. ``` @@ -181,6 +181,20 @@ conda create -n xiaozhi-esp32-server python=3.10 -y conda activate xiaozhi-esp32-server ``` +If your computer is Windows, execute: + +``` +conda activate xiaozhi-esp32-server +conda install conda-forge::libopus +conda install conda-forge::ffmpeg +``` + +If your computer is ubuntu, execute: + +``` +apt-get install libopus0 ffmpeg +``` + ### 2.Install Dependencies ``` @@ -384,3 +398,5 @@ VAD: - Thanks to [Tencent Cloud] (https://cloud.tencent.com/) for providing free docker space for this project。 - Thanks to [tenclass](https://www.tenclass.com/)Provide adequate documentation support on Xiaozhi Communication Protocol。 + +[![Star History Chart](https://api.star-history.com/svg?repos=xiaozhi-esp32-server/xiaozhi-esp32-server&type=Date)](https://star-history.com/#xiaozhi-esp32-server/xiaozhi-esp32-server&Date)