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.

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

Use an exact voice_name value from the API reference, such as Morgan Freeman, Joe Rogan, or Donald Trump. The published API takes prompt and voice_name. It has no language parameter.

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

The Node.js examples create an audio project, then call audioProjects.checkResult to wait for completion and download the audio.

Basic Voice Generation

Podcast-Style Voice

Professional Narration

Combining with Lip Sync

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

API pricing

Voice generation costs 0.1 credits per character of text, rounded up to the nearest whole number. Inputs support up to 1,000 characters.
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