Passer à la navigation

Get Voice

Get one voice by a built-in ElevenLabs voice id or the UUID of a voice your organization cloned.

While a clone is still being created this returns 409 voice_clone_pending. Poll until you get 200 (ready) or 404 (no voice was created), and don’t submit another clone in the meantime. A missing voice, or one from another organization, returns 404 voice_not_found. During a provider outage, an id missing from the saved list returns 503 instead; retry after recovery. See Voice Cloning.

Authentification

x-api-keystring
Authentification par clé API via en-tête

Paramètres de chemin

idstringRequis

The voice id — a built-in provider voice id or a cloned voice UUID.

Paramètres de requête

providerenumOptionnel

Provider to resolve the voice against. Currently elevenlabs.

Valeurs autorisées:

Réponse

Voice retrieved successfully
providerenum
The voice provider.
Valeurs autorisées:
idstringOptionnel
The voice id to pass as voiceId in TTS and generation text inputs.
internalVoiceIdstringOptionnel
The internal id of a cloned voice, when applicable.
voiceIdstringOptionnel

The provider (ElevenLabs) voice id.

namestringOptionnel
The display name of the voice.
previewUrlstringOptionnel
A URL to a short preview sample of the voice, when available.
restrictionenumOptionnel

Set when ElevenLabs won’t currently let the voice be used; null or absent otherwise. verification_required: verify the voice in ElevenLabs if it comes from your connected ElevenLabs account, or choose another voice. blocked: ElevenLabs blocked the voice; choose another.

Valeurs autorisées:

Erreurs

401
Unauthorized Error
404
Not Found Error
409
Conflict Error
500
Internal Server Error
503
Service Unavailable Error