Generate a preview of a voice you want to clone. This API allows you to test how a voice will sound before creating it as a permanent voice.
x-api-key header.
multipart/form-data
| Field | Type | Required | Description |
|---|---|---|---|
text | string | Yes | Text to generate preview with (minimum 3 words, 10 characters) |
similarity | number | Yes | Voice similarity to source (0.0 to 1.0). Higher values produce more similar voice |
model_id | string | Yes | The model identifier to use for generation |
speed | number | No | Speech speed (0.7 to 1.2, default 1.0). Values below 1.0 slow down speech, above 1.0 speed it up |
file | File | Yes | Audio file containing the voice to preview |
text must be at least 3 words and 10 characters long200 OK
Headers:
Content-Type: audio/raw;codec=pcm16;rate=24000;channels=1Cache-Control: no-cacheConnection: keep-aliveAPI key for authentication
Text to generate preview with (minimum 3 words, 10 characters)
Voice similarity to source (0.0 to 1.0). Higher values produce more similar voice
0 <= x <= 1The model identifier to use for generation
Audio file containing the voice to preview
Speech speed (0.7 to 1.2, default 1.0)
0.7 <= x <= 1.2Streaming PCM16 audio preview
PCM16 audio stream (24000 Hz, Mono, 16-bit)