# Qwen3 TTS – AI Text to Speech, 49 Voices, 10 Languages (`andrew_babo/qwen3-tts-api`) Actor

Instant AI text-to-speech powered by Qwen3-TTS: 49 natural voices across Chinese, English, Japanese, Korean, German, French, Russian, Portuguese, Spanish and Italian. One call returns a ready-to-download WAV/MP3. No GPU or model hosting needed.

- **URL**: https://apify.com/andrew\_babo/qwen3-tts-api.md
- **Developed by:** [Andrew Babo](https://apify.com/andrew_babo) (community)
- **Categories:**
- **Stats:** 14 total users, 13 monthly users, 65.4% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## AI Text to Speech – 49 Natural Voices, 10 Languages

Turn any text into natural-sounding speech in seconds. Pick one of 49 ready-made voices across 10 languages, optionally describe the emotion or tone you want in plain words, and get back a downloadable WAV or MP3 file — all in a single API call.

No signup, no API key management, no audio tools to install. You only pay for Apify compute.

### What you get

- **49 natural voices** — including regional dialects (Cantonese, Sichuan, Beijing, Shanghai) plus native-quality English, Spanish, Russian, Italian, Korean, Japanese, German, French and Portuguese voices.
- **10 languages** with automatic detection — or pin a language for the best pronunciation.
- **Emotion & tone control** — write a short instruction like *"Speak slowly and calmly, like a bedtime storyteller"* and the voice follows it.
- **Long text in one call** — up to 5,000 characters as a single, seamless clip.
- **WAV or MP3 output** — ready to download from a direct link, ideal for voiceovers, audiobooks, apps and chatbots.
- **Built-in reliability** — if one route is busy, the Actor automatically retries another, so runs rarely fail.

### Quick start

```json
{
  "text": "Hello! Welcome to our channel.",
  "voice": "Vivian",
  "language": "Auto",
  "format": "mp3"
}
```

Press **Start** (or call the API), and the run's dataset gives you a direct download link:

```json
{
  "audio_url": "https://api.apify.com/v2/key-value-stores/<store-id>/records/audio.mp3",
  "voice": "Vivian",
  "chars": 31,
  "duration_s": 3.2,
  "format": "mp3"
}
```

### Control the emotion and style

Add the optional `instruct` field to steer emotion, speed and character with plain language:

```json
{
  "text": "I just heard the funniest joke. You would not believe it.",
  "voice": "Ryan",
  "language": "English",
  "instruct": "Very happy, upbeat and energetic."
}
```

Good instructions are short and descriptive:

- `Whisper softly, as if telling a secret in a quiet room.`
- `Speak angrily, with a sharp and forceful tone.`
- `Slow and calm, like a bedtime storyteller.`
- `用特别愤怒的语气说`

Notes when using `instruct`:

- Instructions work best in **English and Chinese**; other languages may be less stable.
- Style generation uses a high-demand route, so it can occasionally be unavailable. If that happens, the run fails with a clear message instead of silently ignoring your instruction — just try again in a few minutes.
- Turn on **Rotate IP via Apify Proxy** for high-volume jobs.

### Input fields

| Field | Type | Default | Description |
|---|---|---|---|
| `text` | string | required | Text to synthesize, up to 5,000 characters. |
| `voice` | enum | `Vivian` | One of 49 voices (see the dropdown). |
| `language` | enum | `Auto` | Auto, English, Chinese, German, Italian, Portuguese, Spanish, Japanese, Korean, French, Russian. |
| `format` | enum | `wav` | `wav` (24 kHz PCM) or `mp3` (128 kbps). |
| `instruct` | string | optional | Plain-language style/emotion instruction. Leave empty for the standard high-stability mode. |
| `useProxy` | boolean | `false` | Route requests through Apify Proxy for high-volume jobs (billed separately by Apify). |
| `browserFallback` | boolean | `true` | Keep on for maximum reliability — enables an automatic backup route. |
| `browserTimeoutSecs` | integer | `180` | Maximum time for a single backup attempt. |
| `requireInstruct` | boolean | `true` | When `instruct` is set, fail clearly if the style route is unavailable instead of returning plain speech. |

### Run with the Apify API

```bash
curl -X POST \
  "https://api.apify.com/v2/acts/andrew_babo~qwen3-tts-api/runs?token=$APIFY_TOKEN&waitForFinish=300" \
  -H "Content-Type: application/json" \
  -d '{"text":"Hello from Qwen3 TTS.","voice":"Ryan","language":"English","format":"mp3"}'
```

### Tips

- Keep `language` on `Auto` unless pronunciation sounds off — explicit selection usually fixes it.
- One long call is faster and seam-free compared to splitting text into many small requests.
- Typical run time is just a few seconds for standard voices, and 15–45 seconds when using style instructions.

### Use cases

- YouTube, TikTok and podcast voiceovers
- Audiobooks and e-learning narration
- In-app voice, chatbots and IVR prompts
- Multilingual content localization

### Pricing

The Actor itself is free — you only pay Apify platform compute (a 4 GB run costs a fraction of a cent per generation).

### License

The Actor code is Apache-2.0. The underlying Qwen3-TTS model is governed by its own license — review it before commercial use.

# Actor input Schema

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

Text to synthesize. The whole text is synthesized in one call (up to 5,000 characters).

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

One of the 48 preset voices, including regional dialects (Cantonese, Sichuan, Beijing, Shanghai and more).

## `language` (type: `string`):

Language of the text. Auto detects it. Pick explicitly for best pronunciation.

## `format` (type: `string`):

Container/codec of the returned audio file. MP3 is encoded with ffmpeg.

## `useProxy` (type: `boolean`):

Off by default. Turn on for high-volume jobs: routes requests through Apify Proxy so every call uses a fresh IP (proxy usage is billed separately). Recommended when using Style Instruction.

## `instruct` (type: `string`):

Optional plain-language instruction for emotion, tone, speed, character, or style. Leave empty for the standard 49-voice mode.

## `browserFallback` (type: `boolean`):

Keep on for maximum reliability: if the primary route is busy, the Actor automatically retries through a backup route. Slower (roughly 15-60 s) but recovers runs that would otherwise fail.

## `browserTimeoutSecs` (type: `integer`):

Maximum time a single backup attempt may take before it is abandoned.

## `requireInstruct` (type: `boolean`):

When Style Instruction is set, fail clearly if the style route is unavailable instead of silently returning plain speech.

## Actor input object example

```json
{
  "text": "Hello! This is Qwen3 text to speech running on Apify.",
  "voice": "Vivian",
  "language": "Auto",
  "format": "wav",
  "useProxy": false,
  "browserFallback": true,
  "browserTimeoutSecs": 180,
  "requireInstruct": true
}
```

# Actor output Schema

## `audio` (type: `string`):

Generated audio record stored in the run's key-value store (audio.wav / audio.mp3).

## `metrics` (type: `string`):

Dataset row with voice, language, duration, processing time and the audio URL.

# 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 Qwen3 text to speech running on Apify."
};

// Run the Actor and wait for it to finish
const run = await client.actor("andrew_babo/qwen3-tts-api").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 Qwen3 text to speech running on Apify." }

# Run the Actor and wait for it to finish
run = client.actor("andrew_babo/qwen3-tts-api").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 Qwen3 text to speech running on Apify."
}' |
apify call andrew_babo/qwen3-tts-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,andrew_babo/qwen3-tts-api"
        }
    }
}

```

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/nyfl4DhoaKtKWbtze/builds/YV5IXCTuoiZrmHa8X/openapi.json
