Upload Audio Sample
POST/voice-cloning/upload-sample
Upload audio sample for voice cloning. Supports both Instant (1-5 min) and Professional (30min-3hrs) voice cloning.
Authentication
Authorization: Bearer vm_sk_… with the media.write permission (or all.write). See Authentication.
Request body
multipart/form-data
| Field | Type | Description |
|---|---|---|
file* | file |
Response
200 application/json
| Field | Type | Description |
|---|---|---|
channels* | integer | |
duration* | number | |
filename* | string | |
format* | string | |
id* | string | |
language | string | |
noise_level* | number | |
quality_score* | number | |
sample_rate* | integer | |
size_bytes* | integer | |
speech_clarity* | number | |
transcription | string | |
uploaded_at* | string |
{
"channels": 0,
"duration": 0,
"filename": "string",
"format": "string",
"id": "string",
"noise_level": 0,
"quality_score": 0,
"sample_rate": 0,
"size_bytes": 0,
"speech_clarity": 0,
"uploaded_at": "2026-12-05T10:00:00Z"
}Errors
401 | Missing, wrong, revoked or expired key. |
403 | The key lacks media.write, the route is not available to keys, or the key's IP allow-list refuses this client. |
402 | Not enough credits, or the key reached its spending cap. |
422 | The request failed validation; `detail` lists the fields. |
429 | Over a rate limit; retry after `Retry-After` seconds. |
All statuses: Errors.
Example
curl -X POST "https://api.voicemint.io/api/v1/voice-cloning/upload-sample" \
-H "Authorization: Bearer $VOICEMINT_API_KEY" \
-F "file=@./file"