Voices
Explore and list all available voices in our library
Voices API
Access our library of 100+ premium AI voices across multiple languages and styles.
List All Voices
GET https://api.speechgen.com/v1/voicesQuery Parameters
Prop
Type
Example Request
curl -X GET "https://api.speechgen.com/v1/voices?language=en-US&gender=female" \
-H "Authorization: Bearer YOUR_API_KEY"Response
{
"voices": [
{
"id": "en-US-Neural2-A",
"name": "Aria",
"language": "en-US",
"language_name": "English (US)",
"gender": "female",
"styles": ["cheerful", "professional", "calm", "empathetic"],
"preview_url": "https://cdn.speechgen.com/previews/en-US-Neural2-A.mp3",
"is_premium": false
},
{
"id": "en-US-Neural2-B",
"name": "Brandon",
"language": "en-US",
"language_name": "English (US)",
"gender": "male",
"styles": ["professional", "casual", "newscast"],
"preview_url": "https://cdn.speechgen.com/previews/en-US-Neural2-B.mp3",
"is_premium": false
}
],
"total": 150,
"limit": 50,
"offset": 0
}Get Voice Details
GET https://api.speechgen.com/v1/voices/{voice_id}Voice Object Properties
Prop
Type
Response
{
"id": "en-US-Neural2-A",
"name": "Aria",
"language": "en-US",
"language_name": "English (US)",
"gender": "female",
"age_group": "adult",
"styles": ["cheerful", "professional", "calm", "empathetic"],
"preview_url": "https://cdn.speechgen.com/previews/en-US-Neural2-A.mp3",
"sample_texts": [
"Hello! I'm Aria, and I'm here to help bring your content to life.",
"Welcome to our platform. Let me guide you through the features."
],
"is_premium": false,
"supported_features": {
"ssml": true,
"speed_control": true,
"pitch_control": true,
"styles": true
}
}Available Languages
| Language | Code | Voices |
|---|---|---|
| English (US) | en-US | 24 |
| English (UK) | en-GB | 12 |
| Spanish (Spain) | es-ES | 10 |
| Spanish (Mexico) | es-MX | 8 |
| French | fr-FR | 10 |
| German | de-DE | 10 |
| Italian | it-IT | 8 |
| Portuguese (Brazil) | pt-BR | 8 |
| Japanese | ja-JP | 6 |
| Korean | ko-KR | 6 |
| Chinese (Mandarin) | zh-CN | 8 |
| Arabic | ar-SA | 4 |
| Hindi | hi-IN | 4 |
New voices are added regularly. Check the API for the most up-to-date list.
Voice Styles
Many voices support multiple speaking styles:
| Style | Description |
|---|---|
cheerful | Upbeat and positive |
professional | Formal and authoritative |
calm | Relaxed and soothing |
empathetic | Warm and understanding |
newscast | News anchor style |
casual | Conversational and relaxed |
excited | Energetic and enthusiastic |
Using Styles
Include the style in your text-to-speech request:
{
"text": "Welcome to our podcast!",
"voice": "en-US-Neural2-A",
"style": "cheerful",
"format": "mp3"
}Code Examples
JavaScript
async function listVoices(language = null, gender = null) {
const params = new URLSearchParams();
if (language) params.append("language", language);
if (gender) params.append("gender", gender);
const response = await fetch(
`https://api.speechgen.com/v1/voices?${params}`,
{
headers: {
Authorization: `Bearer ${process.env.SPEECHGEN_API_KEY}`,
},
}
);
return response.json();
}
// Get all English female voices
const voices = await listVoices("en-US", "female");
console.log(voices);Python
import requests
def list_voices(language=None, gender=None):
params = {}
if language:
params['language'] = language
if gender:
params['gender'] = gender
response = requests.get(
'https://api.speechgen.com/v1/voices',
headers={
'Authorization': f'Bearer {os.environ["SPEECHGEN_API_KEY"]}',
},
params=params
)
return response.json()
# Get all Spanish voices
voices = list_voices(language='es-ES')
print(voices)Custom Voices
In addition to our standard library, you can use your own cloned voices. Custom voice IDs follow the format custom-{model_id}.
{
"text": "This is my custom cloned voice!",
"voice": "custom-abc123xyz",
"format": "mp3"
}