Install and start
A partial Hugging Face cache can contain the model weights but omitaudiovae.pth. Download the full checkpoint before launching the server.
voxcpm2
Text, audio → audio. The default voxcpm2.yaml uses 1 GPU. The weights use Apache-2.0.
Send a request
Run either client example in a second terminal after/health returns 200.
Synthesize a sentence
Save the synthesized speech asreply.wav.
Python SDK
Deployment configs
Settings and defaults
Request fields (on/v1/audio/speech, all but instructions and seed go in extra_body):
Deployment
model_kwargs:
Each language model’s KV cache defaults to 2,049 pages, enough for 32 requests at the full 8,192 positions and the sink page. Startup refuses a
max_concurrent_requests the caches cannot hold, so raise resources.base_kv.max_num_pages and resources.res_kv.max_num_pages with it.
Limits
- Nothing preempts a request once a KV cache is full, which is why the shipped cap is 32; the conductor queues the rest.
- One request with long text can stop early, as the official
voxcpmpackage does. Split long text into several requests. min_len,max_lenandinference_timestepsmust be integers (a whole float such as16.0is accepted);cfg_valueoutside 0 to 10 is a 400.- VoxCPM2 has no named voices:
voiceis dropped, andspeedis logged as ignored.