Overseas access: www.kdjingpai.com
Bookmark Us
Current Position:fig. beginning " AI Answers

如何在本地安装和配置CosyVoice环境?

2025-08-23 505

安装CosyVoice需要以下步骤:

  1. 安装Conda环境:推荐使用Miniconda创建Python 3.10的虚拟环境
    conda create -n cosyvoice python=3.10
    conda activate cosyvoice
  2. Installation of dependency packages:使用pip安装所需依赖,建议使用阿里云镜像加速
    pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
  3. 安装pynini:用于文本处理
    conda install -y -c conda-forge pynini==2.1.5
  4. 解决sox兼容性问题:根据操作系统类型安装相应sox包
    • Ubuntu:sudo apt-get install sox libsox-dev
    • CentOS:sudo yum install sox sox-devel
  5. Cloning Project Code::
    git clone --recursive https://github.com/FunAudioLLM/CosyVoice.git

特别提示:如遇到子模块克隆失败,可多次运行git submodule update --init --recursiveUntil it works.

Recommended

Can't find AI tools? Try here!

Just type in the keyword Accessibility Bing SearchYou can quickly find all the AI tools on this site.

Top

en_USEnglish