Getting Started with the Best Text-to-Speech API

Transform text into natural, human-like speech with our powerful developer-first TTS API. Whether you need Python TTS or a Javascript integration, we provide the best AI text to speech models.

Overview

YourVoic Text-to-Speech API converts written text into high-quality audio programmatically. Perfect for audiobooks, voice assistants, e-learning platforms, accessibility tools, and content creation.

5 AI Models

From ultra-fast to premium quality - choose the right model for your use case

0 Premium Voices

Diverse collection of male and female voices with unique characteristics

50+ Languages

Global coverage with localized voice names for each language

Expression Tags

Add emotions like laughter, sighs, and whispers to your audio

Quick Start

1. Get Your API Key

Sign up at yourvoic.com/api/user and generate an API key from your dashboard.

2. Make Your First Request

POST /v1/tts/generate
import requests

response = requests.post(
    "https://yourvoic.com/api/v1/tts/generate",
    headers={"X-API-Key": "your_api_key"},
    json={
        "text": "Hello! Welcome to YourVoic text-to-speech.",
        "voice": "Peter",
        "language": "en-US",
        "model": "aura-prime"
    }
)

# Save the audio file
with open("output.mp3", "wb") as f:
    f.write(response.content)

3. Play the Audio

The API returns audio data directly. Save it as MP3 (default) or request other formats like WAV, OGG, or FLAC.

Key Concepts

Models

ModelSpeedQualityBest For
aura-liteFastGoodReal-time apps, chatbots
aura-primeMediumExcellentGeneral purpose
aura-maxSlowerPremiumAudiobooks, professional
rapid-flashFastestGoodLow latency, IVR
rapid-maxFastVery GoodBalance of speed & quality

Voices

All 1000 voices work with all languages. Voice names are localized - "Peter" in English becomes "Rahul" in Hindi.

# Get available voices
curl "https://yourvoic.com/api/v1/voices" \
  -H "X-API-Key: YOUR_API_KEY"

# Get voices with Hindi names
curl "https://yourvoic.com/api/v1/voices?language=hi" \
  -H "X-API-Key: YOUR_API_KEY"

What's Next?