Create a voice clone
https://my.neuronai.uz/api/v1/tts/voicesCreates a voice clone from a 10 to 15 second recording of the voice and a transcript of what it says.
Use the new voice's id as voice_id when you synthesize.
Needs an API key with voices:write.
Headers
Idempotency-KeystringOptionalMakes a retry safe: the same key again answers 200 with the voice it created, as it is now, instead of cloning another. At most 191 characters, scoped to your organization and kept indefinitely.
Request body
multipart/form-dataA multipart form.
namestringRequiredA name for the voice.
Max. length: 120
languagestringRequiredThe language the recording is in.
Allowed values:
uzruenkkkytktgazref_audiostringRequiredA 10 to 15 second recording of the voice: WAV, MP3, OGG or FLAC, at most 10 MB.
ref_textstringRequiredWhat the recording says, word for word.
Max. length: 1000
categorystringOptionalAllowed values:
conversationalnarrationcharacterssocial_mediaeducationaltagsarray | nullOptionalSend each tag as its own
tags[]field. Blank tags are dropped.
Response
200application/jsonSuccess.
dataobjectRequiredrequest_idstringRequiredFormat: uuid
Headers
Idempotency-ReplayedstringOptional1when the answer is a replay of an earlier request with the sameIdempotency-Key.X-Request-IdstringOptionalIdentifies this request. A JSON body carries it as
request_idtoo; quote it to support.Format: uuid
Errors
- 400
The
Idempotency-Keyis over 191 characters:invalid_request. - 401
The API key is missing or not recognized (
invalid_api_key), revoked (api_key_revoked), disabled (api_key_disabled) or expired (api_key_expired). - 403
The key lacks the permission this endpoint needs (
insufficient_permissions), or the client IP is not in its allowlist (ip_not_allowed). - 409
The
Idempotency-Keywas already used with a different body:idempotency_conflict. - 422
The request failed validation (
invalid_request).error.fieldsnames each invalid field. - 502
The voice service could not do it:
upstream_error. Nothing is created. - default
Any other error, in the same shape, such as
server_error(500) orservice_unavailable(503).