Implementation:Elevenlabs Elevenlabs python VerifiedVoiceLanguageResponseModel
| Attribute | Value |
|---|---|
| Sources | src/elevenlabs/types/verified_voice_language_response_model.py
|
| Domains | Voice Management, Localization |
| Last Updated | 2026-02-15 |
Overview
Description
The VerifiedVoiceLanguageResponseModel represents a verified language configuration for a voice in the ElevenLabs SDK. When a voice has been verified for specific languages, each verified language entry includes the language identifier, the associated model ID, and optional details such as accent, locale, and a preview URL. This model enables clients to understand which languages a voice supports and which TTS model should be used for each.
Usage
This model appears as items within the verified_languages list field on the Voice model. It helps callers select the appropriate model and language combination when generating speech with a particular voice, and provides preview URLs for sampling the voice in each verified language.
Code Reference
Source Location
src/elevenlabs/types/verified_voice_language_response_model.py
Class Signature
class VerifiedVoiceLanguageResponseModel(UncheckedBaseModel):
...
Import Statement
from elevenlabs.types import VerifiedVoiceLanguageResponseModel
Base Class
UncheckedBaseModel (from elevenlabs.core.unchecked_base_model)
I/O Contract
| Field | Type | Required | Description |
|---|---|---|---|
language |
str |
Yes | The language of the voice. |
model_id |
str |
Yes | The voice's model ID. |
accent |
Optional[str] |
No | The voice's accent, if applicable. |
locale |
Optional[str] |
No | The voice's locale, if applicable. |
preview_url |
Optional[str] |
No | The voice's preview URL, if applicable. |
Usage Examples
from elevenlabs import ElevenLabs
client = ElevenLabs(api_key="your_api_key")
# Access verified languages through a Voice object
voice = client.voices.get(voice_id="voice_abc123")
if voice.verified_languages:
for lang_info in voice.verified_languages:
print(f"Language: {lang_info.language}")
print(f"Model ID: {lang_info.model_id}")
if lang_info.accent:
print(f"Accent: {lang_info.accent}")
if lang_info.locale:
print(f"Locale: {lang_info.locale}")
if lang_info.preview_url:
print(f"Preview: {lang_info.preview_url}")
print("---")
# Find a specific language configuration
english_configs = [
lang for lang in voice.verified_languages
if lang.language == "en"
]
if english_configs:
print(f"English model: {english_configs[0].model_id}")
Related Pages
- Voice - Parent model that contains the
verified_languageslist - VerificationAttemptResponse - Verification attempt data for voice identity confirmation