Text-to-Speech Generator (OpenAI voice generator)
DeprecatedPricing
from $1.60 / 1,000 audio files
Text-to-Speech Generator (OpenAI voice generator)
DeprecatedConvert 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.
Pricing
from $1.60 / 1,000 audio files
Rating
1.0
(1)
Developer
Stan Van Rooy
Maintained by CommunityActor stats
1
Bookmarked
9
Total users
0
Monthly active users
14 days ago
Last modified
Categories
Share
Text-to-Speech Generator (OpenAI voice generator) 🎤🔊
Free-plan sample: Apify Free accounts can generate speech from up to 500 text characters per run. Longer inputs end with a limit message before generation; text is not silently truncated. Your own OpenAI key is still required. Upgrade your Apify plan for larger runs. Normal Actor charges apply. The sample resets each run; it is not a daily or monthly quota.
Convert text to speech using OpenAI's text-to-speech API. Simple, fast, and user-friendly.
How it works
- Provide your text and OpenAI API key
- Choose a voice and settings
- 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
| Field | Required | Description |
|---|---|---|
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:
- Download it from the Apify Console (Storage → Key-value stores)
- Access it via API:
https://api.apify.com/v2/key-value-stores/{STORE_ID}/records/speech.mp3
Usage
Apify Console
- Find this actor in the Apify Store
- Click "Try for free"
- Enter your text and OpenAI API key
- 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
🔗 Related tools
- Audio and Video Transcriber: transcribe any audio or video file URL to text with OpenAI GPT-4o transcribe.
- YouTube Transcriber (GPT-4o): turn YouTube videos into accurate transcripts for about $0.006 per minute.
Transform your text into speech in seconds! 🎵