Skip to main content

Overview

AI Voice Generator creates realistic speech audio from text using celebrity and character voices. The API produces high-quality voice synthesis with natural intonation, emotion, and speaking patterns that closely match famous personalities.

API Spec

See API details

Product Page

Learn more about AI Voice Generator

How It Works

  1. Write the text - Enter the text you want spoken
  2. Select a voice - Choose from available celebrity and character voices
  3. API generates audio - AI synthesizes natural-sounding speech
  4. Download the result - Retrieve your audio file

Use Cases

  • Content creation - Voice narration for videos and podcasts
  • Personalized messages - Custom voice messages and greetings
  • Entertainment - Create fun content with celebrity voices
  • Accessibility - Text-to-speech with engaging voices
  • Marketing - Voiceovers for ads and promotional content

Available Voices

Magic Hour offers a variety of celebrity and character voices:
  • Tech Leaders - Elon Musk, Mark Zuckerberg
  • Podcasters - Joe Rogan
  • Politicians - Obama, Trump
  • Entertainers - Various celebrity voices
  • Characters - Fictional character voices
For the complete list of available voices, check the API Reference.

Best Practices

Text Guidelines

Write naturally - Use conversational language that sounds good when spoken aloud.
  • Natural punctuation - Use periods, commas, and question marks for natural pauses
  • Avoid abbreviations - Write out words fully (e.g., “Mister” not “Mr.”)
  • Short sentences - Break long text into shorter, digestible sentences
  • Read it aloud - Test how text sounds before generating

Optimizing Output Quality

Text Length Considerations

  • Short clips - 1-2 sentences work great for social media
  • Medium content - Paragraphs work well for narration
  • Long content - Consider breaking into multiple clips for variety

Code Examples

Basic Voice Generation

Podcast-Style Voice

Professional Narration

Combining with Lip Sync

Generate a voice, then sync it to a video:
Python

Pricing

Voice generation uses credits based on text length:
Try this in our Google Colab Cookbook: Run this API with sample code. Just add your API key.

API Reference

AI Voice Generator API Reference

View full API specification

Lip Sync

Sync generated audio with video lip movements

Animation

Create animated videos with audio