# Kokoro Text to Speech: MP3 and WAV, no API key

**Use case:** 

Turn text into natural speech with the open Kokoro-82M voice model. Returns one MP3 or WAV file per text in the key-value store, with optional SRT subtitles. Pick from 41 voices in English, Spanish, French, Hindi, Italian and Portuguese. Bulk texts or a dataset. No API key.

## Input

```json
{
  "texts": [
    "Hello! This is a short test of Kokoro text to speech."
  ],
  "voice": "af_heart",
  "speed": 1,
  "audioFormat": "mp3",
  "subtitles": true,
  "textField": "text",
  "maxCharactersPerText": 20000,
  "maxTexts": 1000,
  "fileNamePrefix": "speech"
}
```

## Output

```json
{
  "index": {
    "label": "#",
    "format": "integer"
  },
  "id": {
    "label": "ID",
    "format": "string"
  },
  "status": {
    "label": "Status",
    "format": "string"
  },
  "textPreview": {
    "label": "Text",
    "format": "string"
  },
  "voiceName": {
    "label": "Voice",
    "format": "string"
  },
  "language": {
    "label": "Language",
    "format": "string"
  },
  "durationSeconds": {
    "label": "Seconds",
    "format": "number"
  },
  "audioUrl": {
    "label": "Audio",
    "format": "string"
  },
  "subtitlesUrl": {
    "label": "SRT",
    "format": "string"
  },
  "chargedUnits": {
    "label": "Units charged",
    "format": "integer"
  },
  "error": {
    "label": "Error",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Kokoro Text to Speech: $0.08/1K Chars, MP3, No API Key](https://apify.com/conserving_celerytop/kokoro-text-to-speech.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/conserving_celerytop/kokoro-text-to-speech.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/conserving_celerytop/kokoro-text-to-speech.md

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`).
