# Text to Speech: Natural AI Voices to MP3, 9 Languages (Bulk) (`plotpointtech/text-to-speech-kokoro`) Actor

Turn text into natural-sounding speech MP3s with the open Kokoro AI model: 27 voices in US/UK English, Spanish, French, Italian, Portuguese, Hindi, Japanese and Mandarin. Bulk files, speed control, no API key. $0.01 per 1,000 characters.

- **URL**: https://apify.com/plotpointtech/text-to-speech-kokoro.md
- **Developed by:** [Plot Point Technologies](https://apify.com/plotpointtech) (community)
- **Categories:** AI, Videos, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $6.20 / 1,000 1,000 characters

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Text to Speech: Natural AI Voices to MP3, 9 Languages (Bulk)

**Turn text into natural-sounding speech for $0.01 per 1,000 characters.** Paste text, a list of scripts or links to text files, pick one of 27 voices, and get back an MP3 (or WAV, OGG, M4A) for each one. It runs **Kokoro**, an open AI speech model, inside your own run: no API key and no account with a voice provider. One minute of speech is about 900 characters, so a minute of narration costs about one cent.

### What can this text to speech tool do?

- **27 natural voices** in American and British English, Spanish, French, Italian, Brazilian Portuguese, Hindi, Japanese and Mandarin Chinese, both female and male.
- **Long texts:** articles, scripts and book chapters up to about 100,000 characters each, split at sentence boundaries and joined into one smooth file.
- **Bulk:** many texts in one run, one audio file each, with names you choose.
- **Speed control** from 0.5x to 2x, and adjustable pauses between sentences.
- **MP3, WAV, OGG or M4A** at the bitrate you pick.
- **Text files in:** give links to .txt or .md files instead of pasting.

### What data do you get?

| Field | Description |
|---|---|
| `name`, `audioUrl`, `fileName`, `format` | The audio file and its download link |
| `voice`, `language`, `speed` | How it was spoken |
| `characters`, `durationSeconds`, `bytes` | Text length, audio length and file size |
| `processingSeconds`, `textPreview`, `status` | Run details |

### Who uses it?

- **Content creators and marketers** voicing YouTube videos, shorts, ads and explainer clips.
- **Publishers and bloggers** adding a "listen to this article" audio version.
- **E-learning teams** narrating course lessons in several languages.
- **Developers** adding voice output to apps, IVR menus and AI agents through the API.

### How to use it

1. Click **Try for free** (or **Start**).
2. Paste your **Text**, or add **many texts** or **text file URLs**.
3. Pick a **Voice** (the language follows the voice) and, if you like, the **Speed** and **Audio format**.
4. Run it and open the **Output** tab to play or download each file.

### Input example

```json
{
  "texts": [
    { "name": "intro", "text": "Welcome to the course. In this first lesson we cover the basics." },
    { "name": "lesson-1", "text": "Let's start with the most important idea." }
  ],
  "voice": "bf_emma",
  "speed": 1.05,
  "outputFormat": "mp3"
}
```

### Output example

From a real run with the default input:

```json
{
  "name": "demo",
  "audioUrl": "https://api.apify.com/v2/key-value-stores/lluVqhFv064GpSI1o/records/demo.mp3?signature=...",
  "fileName": "demo.mp3",
  "format": "mp3",
  "voice": "af_heart",
  "language": "en-us",
  "characters": 176,
  "durationSeconds": 11.65,
  "bytes": 187820,
  "processingSeconds": 4,
  "status": "ok"
}
```

### How much does it cost?

**$0.01 per started 1,000 characters**, plus **$0.001 per audio file** and a small start fee per run (charged per GB of memory; about $0.0002 at the default 4 GB).

| You create | You pay |
|---|---|
| The demo clip (176 characters) | about $0.011 |
| A 1,500-word blog post (about 9,000 characters) | about $0.09 |
| 100 product descriptions of 500 characters | about $1.10 |
| A 60,000-character book chapter | about $0.60 |

**Volume discounts on higher Apify plans.** The prices above are for the Apify Free plan. On paid plans they drop automatically: about 15% lower on Bronze, 25% lower on Silver and 38% lower on Gold and above.

### Use it via API, Make, Zapier, n8n or an AI agent

**Apify API.** Send text and get the audio link back in one HTTP request (replace `YOUR_API_TOKEN` with the token from Apify Console > Settings > API & Integrations):

```bash
curl -X POST "https://api.apify.com/v2/acts/plotpointtech~text-to-speech-kokoro/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"text": "Your order has shipped and will arrive on Friday.", "voice": "am_michael"}'
```

Official `apify-client` libraries exist for Python and JavaScript; the **API** tab on this page has ready-made code.

**No-code automation.** Connect the tool to **Make, Zapier, n8n, Google Drive, Slack** or any webhook, for example to voice every new blog post automatically.

**AI agents (MCP).** Give Claude, ChatGPT, Cursor or any MCP-compatible agent a voice through the hosted Apify MCP server:

```
https://mcp.apify.com?tools=plotpointtech/text-to-speech-kokoro
```

### FAQ

**Can I use the audio commercially?**
Yes. The Kokoro model and its voices are released under the Apache 2.0 licence, which allows commercial use. You are responsible for the text you voice.

**Can it clone my voice?**
No. It uses the 27 built-in voices only; it does not imitate real people.

**How fast is it?**
Roughly 40-50 characters per second, so a 1,000-word article takes about two minutes.

**Why does a word sound wrong?**
Unusual names, acronyms and numbers are sometimes read oddly. Spell them the way they should sound (for example "S Q L" or "sequel"), or write numbers out in words.

### Related tools from Plot Point Technologies

- [Audio & Podcast Transcription - Whisper (Bulk)](https://apify.com/plotpointtech/audio-podcast-transcription-whisper): the reverse, speech to text.
- [Audio & Video Converter: MP4, WebM, MP3, GIF, Compress](https://apify.com/plotpointtech/audio-video-converter): convert and combine the audio files.
- [News Article Extractor: Clean Text, Author, Date & Images](https://apify.com/plotpointtech/news-article-extractor): get clean article text to voice.

Plot Point Technologies is not affiliated with the Kokoro project or hexgrad. Questions: support@plotpoint.tech.

***

If this tool saved you time, we would be grateful for a short review on this page; it helps other people find it. If something did not work as expected, please open an issue on the **Issues** tab and we will look into it quickly.

# Actor input Schema

## `text` (type: `string`):

The text to turn into speech. Up to about 100,000 characters (a short book chapter).

## `fileName` (type: `string`):

Name of the audio file for the text above.

## `texts` (type: `array`):

A list of texts, or objects like {"name": "intro", "text": "..."}, one audio file each.

## `textFileUrls` (type: `array`):

Links to plain-text (.txt or .md) files; one audio file each.

## `voice` (type: `string`):

The language follows the voice.

## `speed` (type: `number`):

0.5 (slow) to 2 (fast).

## `outputFormat` (type: `string`):

MP3 plays everywhere; WAV is uncompressed.

## `bitrate` (type: `string`):

For MP3, OGG and M4A.

## `pauseBetweenSentencesSec` (type: `number`):

Extra silence added between sentence groups.

## `maxCharactersPerText` (type: `integer`):

Longer texts are cut at this length (protects your budget).

## Actor input object example

```json
{
  "text": "Hello! This is a sample of natural text to speech, generated on the Apify platform with an open-source model. Paste your own text, pick a voice, and get an MP3 back in seconds.",
  "fileName": "speech",
  "voice": "af_heart",
  "speed": 1,
  "outputFormat": "mp3",
  "bitrate": "128k",
  "pauseBetweenSentencesSec": 0.15,
  "maxCharactersPerText": 100000
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `files` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "text": "Hello! This is a sample of natural text to speech, generated on the Apify platform with an open-source model. Paste your own text, pick a voice, and get an MP3 back in seconds."
};

// Run the Actor and wait for it to finish
const run = await client.actor("plotpointtech/text-to-speech-kokoro").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "text": "Hello! This is a sample of natural text to speech, generated on the Apify platform with an open-source model. Paste your own text, pick a voice, and get an MP3 back in seconds." }

# Run the Actor and wait for it to finish
run = client.actor("plotpointtech/text-to-speech-kokoro").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "text": "Hello! This is a sample of natural text to speech, generated on the Apify platform with an open-source model. Paste your own text, pick a voice, and get an MP3 back in seconds."
}' |
apify call plotpointtech/text-to-speech-kokoro --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,plotpointtech/text-to-speech-kokoro"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/pgJ6PvMDD3NISFKc6/builds/hcK0XYNvREaLrkgdm/openapi.json
