Skip to main content
VoxCPM2 generates 48 kHz speech from text. Supply a voice description for voice design, a clip to clone the speaker, or a clip and transcript to continue the recording.

Install and start

A partial Hugging Face cache can contain the model weights but omit audiovae.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 the request.

Send a request

Run either client example in a second terminal after /health returns 200.

Synthesize a sentence

Save the synthesized speech as reply.wav. Python SDK
curl

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 voxcpm package does. Split long text into several requests.
  • min_len, max_len and inference_timesteps must be integers (a whole float such as 16.0 is accepted); cfg_value outside 0 to 10 is a 400.
  • VoxCPM2 has no named voices: voice is dropped, and speed is logged as ignored.