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

List voices

GEThttps://my.neuronai.uz/api/v1/tts/voices

Lists the stock voices, then your organization's voice clones.

No key is needed: without one, only stock voices are listed. A key that is sent is still checked.

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

Параметры запроса

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

    stock or custom. Leave it out for both.

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

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

    Only voices in this language, such as uz.

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

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

    Voices per page, from 1 to 100. 50 by default.

    Минимум: 1 · Максимум: 100

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

    The next_cursor of the previous page.

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

Ответ

200application/json

Success.

  • dataVoice[]Обязательно
  • next_cursorstring | nullОбязательно
  • 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.

  • 422

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

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