ONNX Model Zoo

ASLP-lab/Cosyvoice2-Yue-ZoengJyutGaai

By ASLP-lab · ↓ 0 · ♥ 0 · Updated 2025-09-08

What's in this repo

This page lists the files in ASLP-lab/Cosyvoice2-Yue-ZoengJyutGaai, including campplus.onnx, flow.decoder.estimator.fp32.onnx, speech_tokenizer_v2.onnx.

  • 3 ONNX models (.onnx files)
  • 28 files, including 7 .json, 6 .pt, 3 .onnx, 2 .safetensors, 2 .zip, 1 .txt
  • Last updated 2025-09-08

ONNX files

File Size Download
campplus.onnx — Download
flow.decoder.estimator.fp32.onnx — Download
speech_tokenizer_v2.onnx — Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README

WenetSpeech-Yue

👉🏻 WenetSpeech-Yue 👈🏻

WenetSpeech-Yue: Demos; Paper; Github; HuggingFace

Highlight🔥

WenetSpeech-Yue TTS Models have been released!
This repository contains two versions of the TTS models:

  1. ASLP-lab/Cosyvoice2-Yue: The base model for Cantonese TTS.
  2. ASLP-lab/Cosyvoice2-Yue-ZoengJyutGaai: A fine-tuned, higher-quality version for more natural speech generation.

Roadmap

  • [x] 2025/9

    • [x] 25hz WenetSpeech-Yue TTS models released

Install

Clone and install

  • Clone the repo
git clone --recursive https://github.com/FunAudioLLM/CosyVoice.git
# If you failed to clone submodule due to network failures, please run following command until success
cd CosyVoice
git submodule update --init --recursive
  • Install Conda: please see https://docs.conda.io/en/latest/miniconda.html
  • Create Conda env:
conda create -n cosyvoice python=3.10
conda activate cosyvoice
# pynini is required by WeTextProcessing, use conda to install it as it can be executed on all platform.
conda install -y -c conda-forge pynini==2.1.5
pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host=mirrors.aliyun.com
# If you encounter sox compatibility issues
# ubuntu
sudo apt-get install sox libsox-dev
# centos
sudo yum install sox sox-devel

Model download

  1. Cosyvoice2-Yue
  2. Cosyvoice2-Yue-ZoengJyutGaai

Basic Usage

We strongly recommend using CosyVoice2-0.5B for better performance. Follow code below for detailed usage of each model.

import sys
sys.path.append('third_party/Matcha-TTS')
from cosyvoice.cli.cosyvoice import CosyVoice, CosyVoice2
from cosyvoice.utils.file_utils import load_wav
import torchaudio

CosyVoice2 Usage

cosyvoice = CosyVoice2('ASLP-lab/Cosyvoice2-Yue-ZoengJyutGaai', load_jit=False, load_trt=False, fp16=False)
# NOTE if you want to reproduce the results on https://funaudiollm.github.io/cosyvoice2, please add text_frontend=False during inference
# zero_shot usage
prompt_speech_16k = load_wav('zero_shot_prompt.wav', 16000)
# instruct usage
for i, j in enumerate(cosyvoice.inference_instruct2('收到朋友从远方寄嚟嘅生日礼物,嗰份意外嘅惊喜同埋深深嘅祝福令我心入面充满咗甜蜜嘅快乐,笑容好似花咁绽放。', '用粤语说这句话', prompt_speech_16k, stream=False)):
    torchaudio.save('instruct_{}.wav'.format(i), j['tts_speech'], cosyvoice.sample_rate)

Contact

If you are interested in leaving a message to our research team, feel free to email lhli@mail.nwpu.edu.cn or gzhao@mail.nwpu.edu.cn.

Model info

onnx safetensors arxiv:2509.03959 license:apache-2.0 region:us
↓ 0 ♥ 0

Created: 2025-08-25

Updated: 2025-09-08

View on Hugging Face

Files (28)

.gitattributes
.msc
.mv
CosyVoice-BlankEN/config.json
CosyVoice-BlankEN/generation_config.json
CosyVoice-BlankEN/merges.txt
CosyVoice-BlankEN/model.safetensors
CosyVoice-BlankEN/tokenizer_config.json
CosyVoice-BlankEN/vocab.json
README.md
asset/dingding.png
campplus.onnx ONNX
configuration.json
cosyvoice2.yaml
flow.cache.pt
flow.decoder.estimator.fp16.mygpu.plan
flow.decoder.estimator.fp32.onnx ONNX
flow.encoder.fp16.zip
flow.encoder.fp32.zip
flow.pt
hift.new.pt
hift.pt
llm.pt
speech_tokenizer_v2.onnx ONNX
spk2info.pt
vllm/config.json
vllm/generation_config.json
vllm/model.safetensors

Related models