VoxCPM is a tokenizer-free text-to-speech (TTS) model for context-aware speech generation and voice cloning. Version 2.0.2 requires Python >=3.10. It leverages a causal transformer trained on continuous speech representations, enabling expressive and cloned voice outputs without discrete tokens. The library is under active development by OpenBMB.
pip install voxcpmNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Load the VoxCPM model, generate speech with optional voice cloning from a reference audio file, and save the output.
Ensure you provide a file path string to `voice_clone`.
Reduce batch size or use smaller model variants if available.
Specify `model_path='default'` or a custom path to future-proof your code.
Reinstall the package and ensure a stable internet connection. Clear the cache: `rm -rf ~/.cache/voxcpm` and retry.
Reduce batch size, use a smaller model (if available), or run on CPU by setting `device='cpu'`.
Verify the file path and ensure it points to a valid WAV file.