Purpose
CosyVoice is a multilingual large-scale speech generation (text-to-speech, TTS) model, positioned as a speech synthesis system that provides full-stack capabilities for inference, training, and deployment. The latest version, Fun-CosyVoice 3.0, is based on a large language model (LLM) and targets zero-shot multilingual speech synthesis scenarios.
Main Capabilities
According to the project materials, Fun-CosyVoice 3.0 has the following features:
- Language coverage: supports 9 common languages (Chinese, English, Japanese, Korean, German, Spanish, French, Italian, Russian), more than 18 Chinese dialects/accents (Cantonese, Minnan, Sichuan, Northeastern, Shaanxi, Shanxi, Shanghai, Tianjin, Shandong, Ningxia, Gansu, etc.), and supports multilingual/cross-lingual zero-shot voice cloning.
- Content consistency and naturalness: achieves the current state-of-the-art level in content consistency, speaker similarity, and prosodic naturalness.
- Pronunciation Inpainting: supports pronunciation inpainting for Chinese pinyin and English CMU phonemes, providing stronger controllability and suitable for production use.
- Text normalization: supports reading aloud of numbers, special symbols, and various text formats without the need for traditional front-end modules.
- Bi-Streaming: supports both streaming text input and streaming audio output, achieving latency as low as 150ms while maintaining high-quality audio output.
- Instruct Support: supports various instructions such as language, dialect, emotion, speaking rate, and volume.
Versions and Update Records (according to materials)
- 2025/12: Released the Fun-CosyVoice3-0.5B-2512 base model, reinforcement learning (rl) model, and their training/inference scripts; released the Fun-CosyVoice3-0.5B ModelScope Gradio Space.
- 2025/08: Thanks to NVIDIA Yuekai Zhang for the contribution, added Triton TRT-LLM runtime support and CosyVoice2 GRPO training support.
- 2025/07: Released the Fun-CosyVoice 3.0 evaluation set.
- 2025/05: Added CosyVoice2-0.5B vLLM support.
- 2024/12: Released 25hz CosyVoice2-0.5B.
- 2024/09: Released the 25hz CosyVoice-300M base model and the 25hz CosyVoice-300M voice conversion feature.
- 2024/08: Added Repetition Aware Sampling (RAS) inference to improve LLM stability; supports streaming inference modes, including kv cache and sdpa to optimize rtf.
- 2024/07: Supports Flow Matching training; supports WeTextProcessing when ttsfrd is unavailable; provides FastAPI server and client.
Usage
Environment installation steps (retain the original commands):
git clone --recursive https://github.com/FunAudioLLM/CosyVoice.git
# 如果因网络问题无法克隆子模块,请运行以下命令直至成功
cd CosyVoice
git submodule update --init --recursive
Install Conda: see https://docs.conda.io/en/latest/miniconda.html Create a Conda environment:
conda create -n cosyvoice -y python=3.10
conda activate cosyvoice
pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host=mirrors.aliyun.com
# 如遇到 sox 兼容性问题
# ubuntu
sudo apt-get install sox libsox-dev
# centos
sudo yum install sox sox-devel
It is strongly recommended to download the pretrained Fun-CosyVoice3-0.5B, CosyVoice2-0.5B, CosyVoice-300M, CosyVoice-300M-SFT, and CosyVoice-300M-Instruct models as well as the CosyVoice-ttsfrd resource. Optionally, you can unzip the ttsfrd resource and install the ttsfrd package to obtain better text normalization performance; if the ttsfrd package is not installed, wetext is used by default. It is strongly recommended to use Fun-CosyVoice3-0.5B for better performance. For detailed usage of each model, see the code in example.py.
Inference and training: CosyVoice2/3 supports vLLM 0.11.x+ (V1 engine) and vLLM 0.9.0 (legacy); legacy vLLM versions below 0.9.0 do not support CosyVoice inference, and intermediate versions (such as 0.10.x) have not been tested. Note that vLLM has many specific requirements, so you can create a new environment to avoid breaking the old environment when the hardware does not support vLLM. You can use the official Web demo page to quickly become familiar with CosyVoice; see the demo website for details. Advanced users can use the training and inference scripts provided in examples/libritts.
Service deployment: If service deployment is needed, you can run the steps given in the materials. Using TensorRT-LLM to accelerate the LLM of CosyVoice2 can achieve a 4x speedup compared with the HuggingFace transformers implementation. For quick start details, refer to the relevant materials.
Applicable scenarios
- Zero-shot text-to-speech synthesis for multiple languages and dialects.
- Cross-lingual zero-shot voice cloning.
- Applications requiring low-latency streaming speech output.
- Production-grade TTS requiring pronunciation control (pinyin/CMU phoneme pronunciation correction), emotion, speaking rate, and other instruction control.
Limitations and notes
- Specific model resource sizes, minimum hardware requirements, and paid or pricing information are not clearly stated in the provided materials.
- vLLM version compatibility has specific requirements, and some versions are unsupported or untested (see above).
- Statement in the materials: the above content is for academic purposes only, to demonstrate technical capabilities; some examples come from the Internet, and if the content infringes rights, you can contact us for removal.
Discussion and acknowledgements
You can discuss directly in GitHub Issues, or scan the QR code to join the official DingDing group. The project code draws heavily on FunASR, FunCodec, Matcha-TTS, AcademiCodec, and WeNet. CosyVoice belongs to the FunAudioLLM family—a complete speech AI toolkit.
Related links
- Project address:https://github.com/FunAudioLLM/CosyVoice
- Fun-CosyVoice 3.0:Demos、Paper、ModelScope、HuggingFace、CV3-Eval
- CosyVoice 2.0:Demos、Paper、ModelScope、HuggingFace
- CosyVoice 1.0:Demos、Paper、ModelScope、HuggingFace