Parameter | Type | Required | Description |
---|---|---|---|
inputs.text | string | Yes | Text to convert to speech |
inputs.voice_id | string | Yes | Voice ID to use |
model_id | string | Yes | Model ID (e.g., “eleven_v3”) |
Parameter | Type | Required | Description |
---|---|---|---|
text | string | Yes | Text to convert to speech |
voice_id | string | Yes | Voice ID to use |
model_id | string | Yes | Model ID (e.g., “eleven_flash_v2_5”) |
config | object | No | Voice configuration settings |
Parameter | Type | Range | Description |
---|---|---|---|
stability | float | 0.0 - 1.0 | Controls voice consistency |
similarity_boost | float | 0.0 - 1.0 | Controls voice similarity to original |
style | float | 0.0 - 1.0 | Controls speaking style |
use_speaker_boost | boolean | - | Enhances speaker clarity |
audio_url
:
Code | Description |
---|---|
INVALID_API_KEY | Invalid or missing API key |
INVALID_VOICE_ID | Voice ID not found |
INVALID_MODEL_ID | Model ID not found |
TEXT_TOO_LONG | Text exceeds maximum length |
INSUFFICIENT_CREDITS | Not enough credits |
RATE_LIMIT_EXCEEDED | Rate limit exceeded |