ASLP-lab/WSChuan-TTS
By ASLP-lab · ↓ 0 · ♥ 4 · Updated 2025-09-24
What's in this repo
This page lists the files in ASLP-lab/WSChuan-TTS, including campplus.onnx, flow.decoder.estimator.fp32.onnx, speech_tokenizer_v2.onnx.
- 3 ONNX models (.onnx files)
- 30 files, including 7 .json, 6 .pt, 3 .onnx, 2 .safetensors, 2 .md, 2 .zip
- Last updated 2025-09-24
ONNX files
| File | Size | Download |
|---|---|---|
| CosyVoice2-Chuan/campplus.onnx | — | Download |
| CosyVoice2-Chuan/flow.decoder.estimator.fp32.onnx | — | Download |
| CosyVoice2-Chuan/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-Chuan 👈🏻
Highlight🔥
WenetSpeech-Chuan TTS Models have been released!
Install
Clone and install
- Clone the repo
git clone https://github.com/ASLP-lab/WenetSpeech-Chuan.git
cd WenetSpeech-Chuan/CosyVoice2-Chuan
- 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-Chuan', local_dir='pretrained_models/Cosyvoice2-Chuan')
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
cosyvoice_base = CosyVoice2(
'pretrained_models/Cosyvoice2-Chuan',
load_jit=False, load_trt=False, load_vllm=False, fp16=False
)
prompt_speech_16k = load_wav('asset/sg_017_090.wav', 16000)
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)
## Contact
If you are interested in leaving a message to our research team, feel free to email ziyu_zhang@mail.nwpu.edu.cn.
Model info
onnx
safetensors
license:apache-2.0
region:us
↓ 0
♥ 4
Created: 2025-09-05
Updated: 2025-09-24
View on Hugging FaceFiles (30)
.gitattributes
CosyVoice2-Chuan/.DS_Store
CosyVoice2-Chuan/.msc
CosyVoice2-Chuan/.mv
CosyVoice2-Chuan/CosyVoice-BlankEN/config.json
CosyVoice2-Chuan/CosyVoice-BlankEN/generation_config.json
CosyVoice2-Chuan/CosyVoice-BlankEN/merges.txt
CosyVoice2-Chuan/CosyVoice-BlankEN/model.safetensors
CosyVoice2-Chuan/CosyVoice-BlankEN/tokenizer_config.json
CosyVoice2-Chuan/CosyVoice-BlankEN/vocab.json
CosyVoice2-Chuan/README.md
CosyVoice2-Chuan/asset/dingding.png
CosyVoice2-Chuan/campplus.onnx
ONNX
CosyVoice2-Chuan/configuration.json
CosyVoice2-Chuan/cosyvoice2.yaml
CosyVoice2-Chuan/flow.cache.pt
CosyVoice2-Chuan/flow.decoder.estimator.fp16.mygpu.plan
CosyVoice2-Chuan/flow.decoder.estimator.fp32.onnx
ONNX
CosyVoice2-Chuan/flow.encoder.fp16.zip
CosyVoice2-Chuan/flow.encoder.fp32.zip
CosyVoice2-Chuan/flow.pt
CosyVoice2-Chuan/hift.new.pt
CosyVoice2-Chuan/hift.pt
CosyVoice2-Chuan/llm.pt
CosyVoice2-Chuan/speech_tokenizer_v2.onnx
ONNX
CosyVoice2-Chuan/spk2info.pt
CosyVoice2-Chuan/vllm/config.json
CosyVoice2-Chuan/vllm/generation_config.json
CosyVoice2-Chuan/vllm/model.safetensors
README.md
Related models
More from ASLP-lab
More models
No task type declared.