SuperAPI AI Directory

VoxCPM2 - OpenBMB's open-source speech synthesis model

Author: AI小集 · Original source: AI工具集

What is VoxCPM2

VoxCPM2 is OpenBMB's open-source 2B-parameterspeech synthesismodel. The model adopts a tokenizer-free diffusion autoregressive architecture, supports 30 languages and Chinese dialects, and outputs 48kHz studio-grade audio quality. VoxCPM2 introduces the Voice Design feature, which can create voices from scratch via text descriptions; it supports controllable voice cloning, adjusting emotion and speaking rate while preserving the reference timbre; and it also has an ultimate cloning mode that reproduces every vocal detail. The model's training data reaches 2.36 million hours, with a real-time factor of 0.13, is commercially usable under the Apache-2.0 license, and is a benchmark work of the new generation of multilingual TTS.

VoxCPM2

VoxCPM2's main features

  • Voice Design: Create a virtual voice from scratch through natural language descriptions (such as "a gentle female voice, around 30 years old, speaking slowly"), without any reference audio.
  • Controllable Cloning: Upload reference audio to clone the timbre, while also adjusting emotion, speaking rate, and speaking style in real time through text instructions (such as "more cheerful, slightly faster").
  • Ultimate Cloning: Provide reference audio and its transcribed text to achieve audio-continuation cloning, perfectly reproducing the original voice's timbre, rhythm, breath, and emotional details.
  • Multilingual synthesis: Supports 30 languages and 9 Chinese dialects (Cantonese, Sichuanese, etc.), and can directly synthesize text input in any supported language without specifying a language tag.
  • Real-time streaming generation: Supports streaming output of audio segments, with an RTF as low as 0.13 (Nano-VLLM acceleration), suitable for real-time conversation scenarios.
  • Personalized fine-tuning: Supports SFT full-parameter fine-tuning and LoRA efficient fine-tuning, and only 5-10 minutes of audio is needed to customize a dedicated voice.

How to use VoxCPM2

  • Environment preparation: Install the voxcpm library via pip to ensure the Python environment meets the hardware requirements of version 3.10 or above, PyTorch 2.5 or above, and CUDA 12.0 or above.
  • Model loading: Use the from_pretrained method to load the VoxCPM2 pretrained model released by OpenBMB into GPU memory for subsequent calls.
  • Basic synthesis: Call the model's generate method and pass in the target text content to generate basic speech, and save the returned audio array as an audio file with a 48kHz sampling rate.
  • Voice design: Add a natural language description wrapped in parentheses before the text to be synthesized to implement the Voice Design feature, creating a virtual voice that matches the description from scratch without any reference audio.
  • Voice cloning: Pass in the reference audio file path and the target text to implement basic voice cloning; the model will extract the speaker's timbre features from the reference audio to synthesize new content.
  • Controllable cloning: On the basis of reference audio cloning, add style instructions in parentheses before the text to implement controllable cloning, adjusting emotion, speaking rate, and speaking style while preserving the original timbre.
  • Ultimate cloning: Pass in the reference audio, its corresponding transcribed text, and the target synthesis text at the same time to implement ultimate cloning; the model perfectly reproduces the original voice's timbre, rhythm, and breath details through audio continuation.
  • Streaming generation: Call the generate_streaming method to enable streaming generation mode; the model returns audio data segments chunk by chunk, suitable for real-time conversation and low-latency scenarios.
  • Command-line tool: Use the voxcpm command-line tool in the terminal to execute the design or clone subcommands, quickly completing speech synthesis and voice cloning tasks without writing scripts.
  • Web Interface: Run the app.py file provided by the project to start a Gradio-based web visual interface, and interactively complete speech synthesis operations through the graphical interface in a browser.
  • Production Deployment: Install the nano-vllm-voxcpm extension library and use the VoxCPM class it provides to load the model for production-grade deployment, achieving a real-time factor as low as 0.13 and concurrent request processing capability.

Key Information and Usage Requirements of VoxCPM2

  • Release Background: VoxCPM2 was released by the OpenBMB (ModelBest) team and is the latest flagship version of the VoxCPM series, fully open source under the Apache-2.0 license and available for commercial use.
  • Technical Core: A 2B-parameter diffusion autoregressive model based on the MiniCPM-4 architecture, trained on 2.36 million hours of data, adopting a tokenizer-free design to generate audio directly in continuous speech space, supporting 30 languages and 9 Chinese dialects, and outputting 48kHz studio-grade audio quality.
  • Core Capabilities: The first Voice Design feature creates voices from scratch through text descriptions; supports controllable voice cloning to retain the reference timbre and adjust emotion and speaking rate; the ultimate cloning mode works with transcribed text to achieve audio-continuation-style perfect reproduction; real-time streaming generation has an RTF as low as 0.13.
  • Hardware Environment: Python requires version 3.10 or above, PyTorch requires 2.5.0 or above, CUDA requires 12.0 or above, VRAM requirement is about 8GB, and the first use requires downloading about 4GB of model weight files.
  • Installation and Deployment: Complete the basic installation via pip install voxcpm, supporting three interaction methods: Python API programming calls, the voxcpm command-line tool, and a local web visual interface. For production environments, it is recommended to install nano-vllm-voxcpm to achieve high-performance concurrent services.

Core Advantages of VoxCPM2

  • Tokenizer-Free End-to-End Architecture: Abandons traditional discrete audio tokens and uses diffusion autoregression to generate audio directly in continuous speech representation space, avoiding the information loss caused by tokenization and achieving more natural prosody and richer detailed expression.
  • Native Voice Design Capability: The world's first to create virtual voices from scratch using only natural language descriptions (such as "gentle middle-aged woman, slightly hoarse") without any reference audio, breaking through the limitation of traditional TTS requiring real human recordings.
  • Deeply Controllable Cloning System: Supports three levels of cloning precision: basic cloning retains the timbre; controllable cloning retains the timbre while adjusting emotion, speaking rate, and style in real time through text instructions; ultimate cloning combines transcribed text to achieve audio-continuation-style perfect reproduction.
  • Studio-Grade Audio Quality Output: Adopts AudioVAE V2 asymmetric encoding-decoding technology (16kHz encoding → 48kHz decoding), natively outputs audio at a 48kHz sampling rate, and has built-in super-resolution capability, achieving broadcast-grade audio quality without an external upsampler.
  • Ultra-Large-Scale Multilingual Coverage: Supports 30 mainstream languages and 9 Chinese dialects (Cantonese, Sichuanese, etc.), is trained on 2.36 million hours of multilingual data, enables natural and fluent cross-lingual timbre transfer, and can automatically recognize and synthesize without specifying language tags.

Project Addresses of VoxCPM2

  • GitHub Repository:https://github.com/OpenBMB/VoxCPM
  • HuggingFace Model Repository:https://huggingface.co/openbmb/VoxCPM2

Comparison of VoxCPM2 with Similar Competing Products

Comparison Dimension VoxCPM2 Fish Audio S2 CosyVoice3
Parameter Scale 2B 4B 0.5B / 1.5B
Technical Architecture Tokenizer-free diffusion autoregressive
(continuous space generation)
Dual-AR + DAC
(discrete codec)
AR + Flow Matching
+ HiFi-GAN
Output Audio Quality 48kHz Native studio-grade 24kHz 16kHz
Voice Design
(text description to sound)
✅ First to support ❌ Not supported ❌ Not supported
Controllable Cloning
(adjust emotion/speech rate)
✅ Text label control ⚠️ Limited support ✅ Emotion instruction control
Pronunciation Accuracy
(Seed-TTS-Eval)
Chinese CER 0.97%
English WER 1.84%
Chinese CER 0.54%
English WER 0.99%
Chinese CER 1.12%
English WER 2.02%
Language Coverage 30 languages + 9 Chinese dialects 80+ languages 9 languages + multiple Chinese dialects
First Packet Latency ~150ms (standard)
~80ms (accelerated)
— ~100ms
Real-Time Factor (RTF)
RTX 4090
0.30 (standard)
0.13(Nano-VLLM)
— 0.15
VRAM Requirements ~8GB ~8GB ~4-6GB

Application Scenarios of VoxCPM2

  • Content Creation and Media Production: Suitable for audiobooks, podcasts, and short video dubbing. Through Voice Design, it quickly generates multi-character multilingual content, enabling the accumulation of brand voice assets without the need for real actors.
  • Intelligent Customer Service and Voice Assistants: With low real-time factor and streaming generation capabilities, it can be deployed in intelligent customer service and smart hardware interaction scenarios, supporting seamless switching among 30 languages and enterprise-specific voice fine-tuning.
  • Games and Virtual Idols: Provides multilingual localized dubbing and real-time emotion adjustment for game characters, suitable for entertainment scenarios such as virtual streamers and metaverse social interaction that require instant generation of personalized speech.
  • Advertising and Brand Marketing: Through voice cloning, it replicates the voice of brand spokespersons to generate advertising speech in bulk, or designs virtual speakers that match the brand tone to reduce long-term endorsement costs.
  • Film and Post-Production: Used for multilingual version production and dubbing restoration in film and television. The ultimate cloning mode can precisely replicate the details of an actor's original voice, achieving acoustic consistency between re-recorded dialogue and original materials.