API Reference
SDK Libraries
Endpoints
- Text to Speech
- Voice Changer
- Sound Effects
- Audio Isolation
- Text to Voice
- Dubbing
Administration
- History
- Samples
- User
- Voices
- Voice Library
- Projects
- Pronunciation Dictionaries
- Models
- Audio-native
- Workspace
- Usage
Legacy
- Voice Generation (Deprecated)
Voice Generation (Deprecated)
Voice Parameters
View possible parameters for voice generation.
GET
/
v1
/
voice-generation
/
generate-voice
/
parameters
Copy
Ask AI
from elevenlabs import ElevenLabs
client = ElevenLabs(
api_key="YOUR_API_KEY",
)
client.voice_generation.generate_parameters()
Copy
Ask AI
{
"genders": [
{
"name": "<string>",
"code": "<string>"
}
],
"accents": [
{
"name": "<string>",
"code": "<string>"
}
],
"ages": [
{
"name": "<string>",
"code": "<string>"
}
],
"minimum_characters": 123,
"maximum_characters": 123,
"minimum_accent_strength": 123,
"maximum_accent_strength": 123
}
This API is deprecated. Please use the new Text to Voice API.
Response
200 - application/json
Successful Response
The response is of type object
.
Was this page helpful?
Copy
Ask AI
from elevenlabs import ElevenLabs
client = ElevenLabs(
api_key="YOUR_API_KEY",
)
client.voice_generation.generate_parameters()
Copy
Ask AI
{
"genders": [
{
"name": "<string>",
"code": "<string>"
}
],
"accents": [
{
"name": "<string>",
"code": "<string>"
}
],
"ages": [
{
"name": "<string>",
"code": "<string>"
}
],
"minimum_characters": 123,
"maximum_characters": 123,
"minimum_accent_strength": 123,
"maximum_accent_strength": 123
}
Assistant
Responses are generated using AI and may contain mistakes.