Skip to content

开源项目-xiaozhi-esp32-server

项目地址

安装

windows 需要执行: Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

conda install libopus -y
conda install ffmpeg -y
conda remove -n xiaozhi-esp32-server --all -y
conda create -n xiaozhi-esp32-server python=3.10 -y
conda activate xiaozhi-esp32-server

# 添加清华源通道
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 install libopus -y
conda install ffmpeg -y

# 在 Linux 环境下进行部署时,如出现类似缺失 libiconv.so.2 动态库的报错 请通过以下命令进行安装
conda install libiconv -y

cd main/xiaozhi-server pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/ pip install -r requirements.txt

  • No matching distribution found for sherpa_onnx==1.12.17

sherpa_onnx 改为1.12.19

https://github.com/xinnan-tech/xiaozhi-esp32-server/blob/main/docs/Deployment.md#%E6%A8%A1%E5%9E%8B%E6%96%87%E4%BB%B6

唤醒功能

Q&A

[core.providers.asr.fun_local]-ERROR-语音识别失败: string indices must be integers

查看sensevoicesmall model 是否存在