The following steps are required to install CosyVoice:
- 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 - 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/
- Install pynini: for text processing
conda install -y -c conda-forge pynini==2.1.5
- 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
- Ubuntu:
- 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 --recursive
Until it works.
This answer comes from the articleCosyVoice: Ali open source multilingual cloning and generation toolsThe