Complete toolkit for openbmb/VoxCPM2 — a 2B parameter tokenizer-free diffusion TTS model with voice cloning, voice design, and multilingual synthesis.
-
Open the notebook in Colab:
-
Run all cells top to bottom — installs voxcpm, downloads ~4.6GB model, then:
- 🔊 Basic TTS
- 🎨 Voice Design
- 🌐 Multilingual (30+ languages)
- 👤 Zero-Shot Voice Cloning (upload your voice!)
- 🎵 Hi-Fi Ultimate Cloning
- 📡 Streaming Generation
- 🖥️ Interactive Gradio UI with public URL
-
GPU memory optimized for free T4 tier (~8GB VRAM used out of 16GB)
1# Basic TTS
2python voxcpm2_local_laptop.py --text "Hello world"
3
4# Voice Design (natural language voice control)
5python voxcpm2_local_laptop.py --mode design \
6 --description "warm female voice" \
7 --text "Hello there"
8
9# Voice Cloning (needs reference WAV file)
10python voxcpm2_local_laptop.py --mode clone \
11 --text "This is my cloned voice" \
12 --reference my_voice.wav
13
14# Multilingual demo
15python voxcpm2_local_laptop.py --mode multilingual
16
17# Speed mode (lower timesteps = faster)
18python voxcpm2_local_laptop.py --text "Hello" --timesteps 5
Just text → audio. Fastest mode. 48kHz studio-quality output.
1"(A young woman, gentle and soothing voice) Hello!"
2"(A deep male narrator, professional tone) Welcome."
3"(A robot, monotone synthetic voice) System online."
Clone ANY voice from a 3-10 second audio sample. Upload a WAV and the model mimics the speaker perfectly.
No language tags needed. Just write in the target language:
Generate long texts chunk-by-chunk. Memory-efficient for audiobooks.
These scripts are provided as-is for personal/educational use. The VoxCPM2 model is Apache-2.0 licensed.