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

How to install and configure CosyVoice environment locally?

2025-08-23 726
Link directMobile View
qrcode

The following steps are required to install CosyVoice:

  1. Installation of Conda Environment: Recommended use of Miniconda to create a virtual environment for Python 3.10
    conda create -n cosyvoice python=3.10
    conda activate cosyvoice
  2. Installation of dependency packages: Use pip to install the required dependencies, it is recommended to use AliCloud mirror acceleration
    pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
  3. Install pynini: for text processing
    conda install -y -c conda-forge pynini==2.1.5
  4. Solving sox compatibility issues: Install the appropriate sox packages according to the type of operating system
    • 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

Special Note: If you encounter sub-module cloning failure, you can run it several timesgit 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