Перейти к содержанию

Change a voice clone

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

Changes a voice clone's name, language, transcript, tags or category. Send only the fields to change.

The voice keeps its id and its recording, and a change is applied in full or not at all.

Нужен API-ключ с voices:write.

Параметры пути

  • idstringОбязательно

    The voice id.

Тело запроса

application/json

JSON-объект.

  • namestringНеобязательный

    Макс. длина: 120

  • categorystringНеобязательный

    Допустимые значения:conversationalnarrationcharacterssocial_mediaeducational

  • languagestringНеобязательный

    Допустимые значения:uzruenkkkytktgaz

  • ref_textstringНеобязательный

    What the recording says, word for word. It can be changed, not cleared.

    Макс. длина: 1000

  • tagsarray | nullНеобязательный

    Replaces the tags. null or [] clears them; blank tags are dropped.

Ответ

200application/json

Success.

  • dataobjectОбязательно
  • request_idstringОбязательно

    Формат: uuid

Заголовки

  • X-Request-IdstringНеобязательный

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

    Формат: uuid

Ошибки

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