API v1.0 is now available! Check out the new voice cloning features.
SpeechgenSpeechgen

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/voices

Query 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

LanguageCodeVoices
English (US)en-US24
English (UK)en-GB12
Spanish (Spain)es-ES10
Spanish (Mexico)es-MX8
Frenchfr-FR10
Germande-DE10
Italianit-IT8
Portuguese (Brazil)pt-BR8
Japaneseja-JP6
Koreanko-KR6
Chinese (Mandarin)zh-CN8
Arabicar-SA4
Hindihi-IN4

New voices are added regularly. Check the API for the most up-to-date list.

Voice Styles

Many voices support multiple speaking styles:

StyleDescription
cheerfulUpbeat and positive
professionalFormal and authoritative
calmRelaxed and soothing
empatheticWarm and understanding
newscastNews anchor style
casualConversational and relaxed
excitedEnergetic 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"
}