Text-to-Speech Generator (OpenAI voice generator) avatar
Text-to-Speech Generator (OpenAI voice generator)

Pricing

$6.00/month + usage

Go to Store
Text-to-Speech Generator (OpenAI voice generator)

Text-to-Speech Generator (OpenAI voice generator)

Developed by

Stan Van Rooy

Stan Van Rooy

Maintained by Community

Convert text to speech effortlessly with our OpenAI voice generator. Choose from 6 English-optimized voices, customize settings, and get high-quality audio files fast. Simple to use, integrates with your OpenAI API key.

5.0 (1)

Pricing

$6.00/month + usage

0

Total users

1

Monthly users

1

Last modified

2 days ago

Text-to-Speech Generator (OpenAI voice generator) πŸŽ€πŸ”Š

Convert text to speech using OpenAI's text-to-speech API. Simple, fast, and user-friendly.

How it works

  1. Provide your text and OpenAI API key
  2. Choose a voice and settings
  3. Get back an audio file stored in the key-value store

Voices

OpenAI provides 6 voices. All of them are optimized for English:

  • alloy - Balanced, versatile (default)
  • echo - Warm, upbeat
  • fable - Clear, expressive
  • onyx - Deep, authoritative
  • nova - Smooth, confident
  • shimmer - Soft, whispery

Listen to voice samples at OpenAI's documentation.

Input

FieldRequiredDescription
textβœ…Text to convert (max 4,096 characters)
openai_api_keyβœ…Your OpenAI API key
voice❌Voice to use (default: alloy)
model❌tts-1 (faster) or tts-1-hd (higher quality)
response_format❌mp3, opus, aac, or flac (default: mp3)
speed❌Speech speed 0.25-4.0 (default: 1.0)

Example input:

{
"text": "Hello! Welcome to our text-to-speech service.",
"openai_api_key": "sk-your-api-key-here",
"voice": "nova",
"model": "tts-1-hd"
}

Output

The actor outputs:

  • Dataset: Result info with audio file name and status
  • Key-value store: The actual audio file you can download

Dataset output:

{
"text": "Hello! Welcome to our text-to-speech service.",
"voice": "nova",
"audio_file": "speech.mp3",
"status": "success"
}

Download your audio

The audio file is saved in the key-value store. You can:

  1. Download it from the Apify Console (Storage β†’ Key-value stores)
  2. Access it via API: https://api.apify.com/v2/key-value-stores/{STORE_ID}/records/speech.mp3

Usage

Apify Console

  1. Find this actor in the Apify Store
  2. Click "Try for free"
  3. Enter your text and OpenAI API key
  4. Run and download your audio file

API

curl -X POST "https://api.apify.com/v2/acts/hsmtk1ZP05MLGe7De/runs" \
-H "Authorization: Bearer YOUR_APIFY_TOKEN" \
-d '{"text": "Hello world", "openai_api_key": "sk-..."}'

Pricing

  • OpenAI: ~$15 per 1M characters (tts-1) or $30 per 1M characters (tts-1-hd)

Limitations

  • Max 4,096 characters per text
  • Voices optimized for English
  • Requires OpenAI API key

Transform your text into speech in seconds! 🎡