Skip to content

Replace a voice clone's reference audio

POSThttps://my.neuronai.uz/api/v1/tts/voices/{id}/audio

Replaces a voice clone's recording. The voice keeps its id.

The old recording stays until the new one is accepted, so a failed upload changes nothing.

Needs an API key with voices:write.

Path parameters

  • idstringRequired

    The voice id.

Request body

multipart/form-data

A multipart form.

  • ref_audiostringRequired

    At most 10 MB.

  • ref_textstringOptional

    What the new recording says, word for word. Send it when the words change. A voice with no transcript yet must get one.

    Max. length: 1000

Response

200application/json

Success.

  • dataobjectRequired
  • request_idstringRequired

    Format: uuid

Headers

  • X-Request-IdstringOptional

    Identifies this request. A JSON body carries it as request_id too; quote it to support.

    Format: uuid

Errors

  • 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).

  • 404

    No such voice for this key: not_found.

  • 422

    The request failed validation (invalid_request). error.fields names each invalid field.

  • 502

    The voice service could not do it: upstream_error. Nothing changes.

  • default

    Any other error, in the same shape, such as server_error (500) or service_unavailable (503).