Text To Speech avatar
Text To Speech
Under maintenance

Pricing

Pay per usage

Go to Apify Store
Text To Speech

Text To Speech

Under maintenance

Convert text to natural speech using AI voices. Multiple voices and languages available. Generate audio files for podcasts, videos, accessibility, and voice assistants.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

Fabio Suizu

Fabio Suizu

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

11 hours ago

Last modified

Categories

Share

Text to Speech - AI Voice Generator

Convert text to natural-sounding speech using AI voices. Multiple voices, languages, and output formats.

Features

  • Fast Processing: Lightning-fast text to speech - ai voice generator powered by Azure
  • Reliable: 99.9% uptime with automatic failover
  • Scalable: Handle single requests or bulk operations
  • Secure: Enterprise-grade security with API key authentication
  • Well Documented: Comprehensive API documentation and examples

Use Cases

  • Development: Integrate into your development workflow
  • Automation: Build automated pipelines
  • Integration: Connect with other services

Input Parameters

ParameterTypeRequiredDescription
textstringYesText to convert to speech
textsarrayNoList of texts for batch conversion
voicestringNoAI voice to use
modelstringNoAudio quality model
speednumberNoSpeech speed (0.25 - 4.0)
formatstringNoAudio output format
enginestringNoTTS engine to use
languagestringNoLanguage code for Google TTS engine
saveToKeyValueStorebooleanNoSave generated audio to key-value store

Output Format

{
"success": true,
"result": { ... },
"timestamp": "2026-01-07T00:00:00Z"
}

Code Examples

JavaScript (Node.js)

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });
const input = {
"text": "Hello, welcome to our service!",
"texts": [
"First message",
"Second message"
],
"voice": "alloy",
"model": "tts-1",
"speed": 1.0,
"format": "mp3",
"engine": "openai",
"language": "en",
"saveToKeyValueStore": true
};
const run = await client.actor("vivid_astronaut/text-to-speech").call(input);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

Python

from apify_client import ApifyClient
client = ApifyClient("YOUR_API_TOKEN")
run_input = {
"text": "Hello, welcome to our service!",
"texts": [
"First message",
"Second message"
],
"voice": "alloy",
"model": "tts-1",
"speed": 1.0,
"format": "mp3",
"engine": "openai",
"language": "en",
"saveToKeyValueStore": true
}
run = client.actor("vivid_astronaut/text-to-speech").call(run_input=run_input)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)

cURL

curl -X POST "https://api.apify.com/v2/acts/vivid_astronaut~text-to-speech/runs?token=YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"text": "Hello, welcome to our service!",
"texts": [
"First message",
"Second message"
],
"voice": "alloy",
"model": "tts-1",
"speed": 1.0,
"format": "mp3",
"engine": "openai",
"language": "en",
"saveToKeyValueStore": true
}'

Pricing

Model: Pay per result Price: $0.005 per result

You only pay for successful results. Platform usage costs are included.

API Documentation

Full API documentation is available at:

Support

Version History

See ./CHANGELOG.md for version history.


Powered by Azure Cloud Infrastructure