ONNX Model Zoo

ASLP-lab/WSYue-TTS

By ASLP-lab · ↓ 0 · ♥ 6 · Updated 2025-11-29

What's in this repo

This page lists the files in ASLP-lab/WSYue-TTS, including campplus.onnx, flow.decoder.estimator.fp32.onnx, speech_tokenizer_v2.onnx and more.

  • 6 ONNX models (.onnx files)
  • 64 files, including 19 .json, 12 .pt, 6 .onnx, 5 .safetensors, 4 .zip, 3 .md
  • Last updated 2025-11-29

ONNX files

File Size Download
CosyVoice2-Yue-ZoengJyutGaai/CosyVoice2-yue-zjg/campplus.onnx — Download
CosyVoice2-Yue-ZoengJyutGaai/CosyVoice2-yue-zjg/flow.decoder.estimator.fp32.onnx — Download
CosyVoice2-Yue-ZoengJyutGaai/CosyVoice2-yue-zjg/speech_tokenizer_v2.onnx — Download
CosyVoice2-Yue/CosyVoice2-yue-base/campplus.onnx — Download
CosyVoice2-Yue/CosyVoice2-yue-base/flow.decoder.estimator.fp32.onnx — Download
CosyVoice2-Yue/CosyVoice2-yue-base/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: Demos; Paper; Github; HuggingFace

📢 News and Updates

  • 2025.11.15 🚀 Released Llasa-1B-Yue-Updated! You can access the complete inference pipeline and scripts on WenetSpeech-Yue

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.

Install

Clone and install

  • Clone the repo
git clone https://github.com/ASLP-lab/WenetSpeech-Yue.git
cd WenetSpeech-Yue/CosyVoice2-Yue
  • 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

Model download

from huggingface_hub import snapshot_download
snapshot_download('ASLP-lab/Cosyvoice2-Yue', local_dir='pretrained_models/Cosyvoice2-Yue')
snapshot_download('ASLP-lab/Cosyvoice2-Yue-ZoengJyutGaai', local_dir='pretrained_models/Cosyvoice2-Yue-ZoengJyutGaai')

Usage

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
import opencc

# s2t
converter = opencc.OpenCC('s2t.json')

cosyvoice_base = CosyVoice2(
    'pretrained_models/Cosyvoice2-Yue',
    load_jit=False, load_trt=False, load_vllm=False, fp16=False
)

cosyvoice_zjg = CosyVoice2(
    'pretrained_models/Cosyvoice2-Yue-ZoengJyutGaai',
    load_jit=False, load_trt=False, load_vllm=False, fp16=False
)

prompt_speech_16k = load_wav('asset/sg_017_090.wav', 16000)

text = '收到朋友从远方寄嚟嘅生日礼物,嗰份意外嘅惊喜同埋深深嘅祝福令我心入面充满咗甜蜜嘅快乐,笑容好似花咁绽放。'
text = converter.convert(text)

for i, j in enumerate(cosyvoice_base.inference_instruct2(text, '用粤语说这句话', prompt_speech_16k, stream=False)):
    torchaudio.save('base_{}.wav'.format(i), j['tts_speech'], cosyvoice.sample_rate)

for i, j in enumerate(cosyvoice_zjg.inference_instruct2(text, '用粤语说这句话', prompt_speech_16k, stream=False)):
    torchaudio.save('zjg_{}.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 ♥ 6

Created: 2025-09-06

Updated: 2025-11-29

View on Hugging Face

Files (64)

.gitattributes
CosyVoice2-Yue-ZoengJyutGaai/CosyVoice2-yue-zjg/.msc
CosyVoice2-Yue-ZoengJyutGaai/CosyVoice2-yue-zjg/.mv
CosyVoice2-Yue-ZoengJyutGaai/CosyVoice2-yue-zjg/CosyVoice-BlankEN/config.json
CosyVoice2-Yue-ZoengJyutGaai/CosyVoice2-yue-zjg/CosyVoice-BlankEN/generation_config.json
CosyVoice2-Yue-ZoengJyutGaai/CosyVoice2-yue-zjg/CosyVoice-BlankEN/merges.txt
CosyVoice2-Yue-ZoengJyutGaai/CosyVoice2-yue-zjg/CosyVoice-BlankEN/model.safetensors
CosyVoice2-Yue-ZoengJyutGaai/CosyVoice2-yue-zjg/CosyVoice-BlankEN/tokenizer_config.json
CosyVoice2-Yue-ZoengJyutGaai/CosyVoice2-yue-zjg/CosyVoice-BlankEN/vocab.json
CosyVoice2-Yue-ZoengJyutGaai/CosyVoice2-yue-zjg/README.md
CosyVoice2-Yue-ZoengJyutGaai/CosyVoice2-yue-zjg/asset/dingding.png
CosyVoice2-Yue-ZoengJyutGaai/CosyVoice2-yue-zjg/asset/sg_017_090.wav
CosyVoice2-Yue-ZoengJyutGaai/CosyVoice2-yue-zjg/campplus.onnx ONNX
CosyVoice2-Yue-ZoengJyutGaai/CosyVoice2-yue-zjg/configuration.json
CosyVoice2-Yue-ZoengJyutGaai/CosyVoice2-yue-zjg/cosyvoice2.yaml
CosyVoice2-Yue-ZoengJyutGaai/CosyVoice2-yue-zjg/flow.cache.pt
CosyVoice2-Yue-ZoengJyutGaai/CosyVoice2-yue-zjg/flow.decoder.estimator.fp16.mygpu.plan
CosyVoice2-Yue-ZoengJyutGaai/CosyVoice2-yue-zjg/flow.decoder.estimator.fp32.onnx ONNX
CosyVoice2-Yue-ZoengJyutGaai/CosyVoice2-yue-zjg/flow.encoder.fp16.zip
CosyVoice2-Yue-ZoengJyutGaai/CosyVoice2-yue-zjg/flow.encoder.fp32.zip
CosyVoice2-Yue-ZoengJyutGaai/CosyVoice2-yue-zjg/flow.pt
CosyVoice2-Yue-ZoengJyutGaai/CosyVoice2-yue-zjg/hift.new.pt
CosyVoice2-Yue-ZoengJyutGaai/CosyVoice2-yue-zjg/hift.pt
CosyVoice2-Yue-ZoengJyutGaai/CosyVoice2-yue-zjg/llm.pt
CosyVoice2-Yue-ZoengJyutGaai/CosyVoice2-yue-zjg/speech_tokenizer_v2.onnx ONNX
CosyVoice2-Yue-ZoengJyutGaai/CosyVoice2-yue-zjg/spk2info.pt
CosyVoice2-Yue-ZoengJyutGaai/CosyVoice2-yue-zjg/vllm/config.json
CosyVoice2-Yue-ZoengJyutGaai/CosyVoice2-yue-zjg/vllm/generation_config.json
CosyVoice2-Yue-ZoengJyutGaai/CosyVoice2-yue-zjg/vllm/model.safetensors
CosyVoice2-Yue/CosyVoice2-yue-base/.msc
CosyVoice2-Yue/CosyVoice2-yue-base/.mv
CosyVoice2-Yue/CosyVoice2-yue-base/CosyVoice-BlankEN/config.json
CosyVoice2-Yue/CosyVoice2-yue-base/CosyVoice-BlankEN/generation_config.json
CosyVoice2-Yue/CosyVoice2-yue-base/CosyVoice-BlankEN/merges.txt
CosyVoice2-Yue/CosyVoice2-yue-base/CosyVoice-BlankEN/model.safetensors
CosyVoice2-Yue/CosyVoice2-yue-base/CosyVoice-BlankEN/tokenizer_config.json
CosyVoice2-Yue/CosyVoice2-yue-base/CosyVoice-BlankEN/vocab.json
CosyVoice2-Yue/CosyVoice2-yue-base/README.md
CosyVoice2-Yue/CosyVoice2-yue-base/asset/dingding.png
CosyVoice2-Yue/CosyVoice2-yue-base/campplus.onnx ONNX
CosyVoice2-Yue/CosyVoice2-yue-base/configuration.json
CosyVoice2-Yue/CosyVoice2-yue-base/cosyvoice2.yaml
CosyVoice2-Yue/CosyVoice2-yue-base/flow.cache.pt
CosyVoice2-Yue/CosyVoice2-yue-base/flow.decoder.estimator.fp16.mygpu.plan
CosyVoice2-Yue/CosyVoice2-yue-base/flow.decoder.estimator.fp32.onnx ONNX
CosyVoice2-Yue/CosyVoice2-yue-base/flow.encoder.fp16.zip
CosyVoice2-Yue/CosyVoice2-yue-base/flow.encoder.fp32.zip
CosyVoice2-Yue/CosyVoice2-yue-base/flow.pt
CosyVoice2-Yue/CosyVoice2-yue-base/hift.new.pt
CosyVoice2-Yue/CosyVoice2-yue-base/hift.pt
CosyVoice2-Yue/CosyVoice2-yue-base/llm.pt
CosyVoice2-Yue/CosyVoice2-yue-base/speech_tokenizer_v2.onnx ONNX
CosyVoice2-Yue/CosyVoice2-yue-base/spk2info.pt
CosyVoice2-Yue/CosyVoice2-yue-base/vllm/config.json
CosyVoice2-Yue/CosyVoice2-yue-base/vllm/generation_config.json
CosyVoice2-Yue/CosyVoice2-yue-base/vllm/model.safetensors
Llasa-1B-Yue-Updated/llasa-1B-yue-updated/chat_template.jinja
Llasa-1B-Yue-Updated/llasa-1B-yue-updated/config.json
Llasa-1B-Yue-Updated/llasa-1B-yue-updated/generation_config.json
Llasa-1B-Yue-Updated/llasa-1B-yue-updated/model.safetensors
Llasa-1B-Yue-Updated/llasa-1B-yue-updated/special_tokens_map.json
Llasa-1B-Yue-Updated/llasa-1B-yue-updated/tokenizer.json
Llasa-1B-Yue-Updated/llasa-1B-yue-updated/tokenizer_config.json
README.md

Related models