ComfyUI Extension
ComfyUI_VoxCPM_SM
VoxCPM:Tokenizer-Free TTS for Context-Aware Speech Generation and True-to-Life Voice Cloning,you can use this node,easy infer and easy train
smthemex/ComfyUI_VoxCPM_SM
Nodes4
On cloudLocal install
CategoryVoxCPM_SM
Stars29
Updated11 days ago
Nodes (4)
Readme
ComfyUI_VoxCPM_SM
VoxCPM:
Tokenizer-Free TTS for Context-Aware Speech Generation and True-to-Life Voice Cloning,you can use this node,easy infer and easy train
Update
- 新增fp8,w4a8模型支持,修复bug, support fp8,w4a8 ,fix bug
- Support convrot-int8 /int4 quant model,seed support,int4 only need 2G Vram,加入convrot-int8/int4量化模型支持,seed应用跟随官方源码,int4只需要2G显存
- Support gguf now ,infer just need 4.8G Vram (Q6),加入gguf模型支持,Q6需要4.8G左右的显存;
- 清理代码,推理加入随机种,不一定生效,支持lora的metadata加载config
- 支持VoxCPM2模型的推理和训练
- Support VoxCPM2 model training and inference
Training
- Lora train jsonl files in ' ./VoxCPM/examples/train_data_example.jsonl ' , edit it ,add audio and audio text ;
- Lora训练的train_data_example.jsonl文件在' ./VoxCPM/examples/train_data_example.jsonl '里,按格式填写你的本地音频路径和对应的文本即可,有4种格式,刚开始按最简单的来就好;
- 5-10min train audios ,train 2000 step
- 官方推荐的是5-10分钟音频数据,训练2000步即可 ,模型自动存在lora目录下; 训练节点只是懒得开webui搓的单线程,性能不是最优, 因为ComfyUI的天然缺陷在那。
- 训练方法,在init节点填写本地train_data_example.jsonl路径,去掉引号,选择模型和vae,点击运行;
- Training method: Fill in the local ‘ train_data_example.jsonl ’ path in the init node, remove the path quotation marks, select the model and VAE, and click Run;
1.Installation
- In the ' ./ComfyUI/custom_nodes ' directory, run the following:
git clone https://github.com/smthemex/ComfyUI_VoxCPM_SM
2.requirements
pip install -r requirements.txt
3.checkpoints
- 3.1 Vae and model VoxCPM1.5 只下载vae和models 模型
- 3.2 Vae and model VoxCPM2 只下载vae和models 模型
- 3.3 model gguf or int8_convrot smthem or 夸克云盘
├── ComfyUI/models/diffusion_models
| ├── VoxCPM.safetensors # rename from model.safetensors 换个名字
| ├── VoxCPM2.safetensors # rename from model.safetensors 换个名字 # 可选gguf
| ├── VoxCPM2_int8_convrot.safetensors # 可选int8_convrot 2.4G or int4_convrot 1.3G
├── ComfyUI/models/gguf
| ├── VoxCPM2-merger-llm-Q6_K-token16.gguf # optional 可选safetensors
├── ComfyUI/models/vae
| ├──audiovae.pth
| ├──VoxCPM2_audiovae.pth # rename 换个名字
- 量化模型对比

4.Example
- Infer or train lora 推理或训练lora

5.Citation
@article{voxcpm2025,
title = {VoxCPM: Tokenizer-Free TTS for Context-Aware Speech Generation and True-to-Life Voice Cloning},
author = {Zhou, Yixuan and Zeng, Guoyang and Liu, Xin and Li, Xiang and Yu, Renjie and Wang, Ziyang and Ye, Runchuan and Sun, Weiyue and Gui, Jiancheng and Li, Kehan and Wu, Zhiyong and Liu, Zhiyuan},
journal = {arXiv preprint arXiv:2509.24650},
year = {2025},
}