
Text-to-Speech Generator (OpenAI voice generator)
Pricing
$6.00/month + usage
Go to Store

Text-to-Speech Generator (OpenAI voice generator)
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
- 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
Transform your text into speech in seconds! π΅