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

Get a voice

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

One voice by id. Stock voices are public. A voice clone needs a key with voices:read from its own organization; any other caller gets 404 not_found.

Работает без ключа; ключ с voices:read видит больше.

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

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

    The voice id.

Ответ

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 key sent is invalid, revoked, disabled or expired. A request without a key is answered as anonymous.

  • 403

    A key was sent, and the client IP is not in its allowlist: ip_not_allowed.

  • 404

    No such voice for this key: not_found.

  • 502

    The voice service could not list its voices: upstream_error.

  • default

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