# HeyGen Voice Turbo

> HeyGen Voice Turbo is the fast, low-cost tier of HeyGen Voice, with library voices and instant cloning from a reference clip.


## Overview

- **Endpoint**: `https://fal.run/heygen/heygen-voice/turbo`
- **Model ID**: `heygen/heygen-voice/turbo`
- **Category**: text-to-speech
- **Kind**: inference
**Tags**: heygen, text-to-speech, tts, voice cloning, turbo



## Pricing

Speech costs **$0.004** per **1,000 characters** of input text.

For more details, see [fal.ai pricing](https://fal.ai/pricing).

## API Information

This model can be used via our HTTP API or more conveniently via our client libraries.
See the input and output schema below, as well as the usage examples.


### Input Schema

The API accepts the following input parameters:


- **`text`** (`string`, _required_):
  The text to speak.
  - Examples: "Hello! This is HeyGen Voice, speaking on fal."

- **`voice`** (`VoiceEnum`, _optional_):
  HeyGen public voice. Ignored when reference_audio_url is set. Default value: `"Jonah"`
  - Default: `"Jonah"`
  - Options: `"Jonah"`, `"Nadine"`, `"Tabitha"`, `"Soren"`, `"Elowen"`, `"Vincent"`, `"Jocelyn"`, `"Marielle"`, `"Corinne"`, `"Lucian"`, `"Kieran"`, `"Hugh"`, `"Noelle"`, `"Bram"`, `"Ewan"`, `"Iona"`, `"Cecily"`, `"Simon"`, `"Weston"`, `"Felicity"`, `"Gareth"`, `"Rory"`, `"Meredith"`, `"Sabrina"`

- **`reference_audio_url`** (`string`, _optional_):
  Recording of a single speaker to clone instead of using a public voice. Only the first 3 minutes are used.

- **`language`** (`Enum`, _optional_):
  Language of the text. Detected from the text when omitted.
  - Options: `"ar"`, `"be"`, `"bg"`, `"ca"`, `"cs"`, `"da"`, `"de"`, `"el"`, `"en"`, `"es"`, `"fa"`, `"fi"`, `"fr"`, `"he"`, `"hi"`, `"hr"`, `"hu"`, `"id"`, `"it"`, `"ja"`, `"ko"`, `"mk"`, `"ms"`, `"nl"`, `"pl"`, `"pt"`, `"ro"`, `"ru"`, `"sk"`, `"sl"`, `"sr"`, `"sv"`, `"ta"`, `"th"`, `"tl"`, `"tr"`, `"uk"`, `"vi"`, `"zh"`

- **`expressiveness_boost`** (`float`, _optional_):
  How expressive the delivery is. Default value: `1`
  - Default: `1`
  - Range: `0` to `1`

- **`enable_safety_checker`** (`boolean`, _optional_):
  Authorized callers may set false to request relaxed screening. Default value: `true`
  - Default: `true`



**Required Parameters Example**:

```json
{
  "text": "Hello! This is HeyGen Voice, speaking on fal."
}
```

**Full Example**:

```json
{
  "text": "Hello! This is HeyGen Voice, speaking on fal.",
  "voice": "Jonah",
  "expressiveness_boost": 1,
  "enable_safety_checker": true
}
```


### Output Schema

The API returns the following output format:

- **`audio`** (`File`, _required_):
  Generated speech as a 44.1 kHz WAV file.

- **`duration`** (`float`, _required_):
  Duration of the audio in seconds.



**Example Response**:

```json
{
  "audio": {
    "url": "",
    "content_type": "image/png",
    "file_name": "z9RV14K95DvU.png",
    "file_size": 4404019
  }
}
```


## Usage Examples

### cURL

```bash
curl --request POST \
  --url https://fal.run/heygen/heygen-voice/turbo \
  --header "Authorization: Key $FAL_KEY" \
  --header "Content-Type: application/json" \
  --data '{
     "text": "Hello! This is HeyGen Voice, speaking on fal."
   }'
```

### Python

Ensure you have the Python client installed:

```bash
pip install fal-client
```

Then use the API client to make requests:

```python
import fal_client

def on_queue_update(update):
    if isinstance(update, fal_client.InProgress):
        for log in update.logs:
           print(log["message"])

result = fal_client.subscribe(
    "heygen/heygen-voice/turbo",
    arguments={
        "text": "Hello! This is HeyGen Voice, speaking on fal."
    },
    with_logs=True,
    on_queue_update=on_queue_update,
)
print(result)
```

### JavaScript

Ensure you have the JavaScript client installed:

```bash
npm install --save @fal-ai/client
```

Then use the API client to make requests:

```javascript
import { fal } from "@fal-ai/client";

const result = await fal.subscribe("heygen/heygen-voice/turbo", {
  input: {
    text: "Hello! This is HeyGen Voice, speaking on fal."
  },
  logs: true,
  onQueueUpdate: (update) => {
    if (update.status === "IN_PROGRESS") {
      update.logs.map((log) => log.message).forEach(console.log);
    }
  },
});
console.log(result.data);
console.log(result.requestId);
```


## Additional Resources

### Documentation

- [Model Playground](https://fal.ai/models/heygen/heygen-voice/turbo)
- [API Documentation](https://fal.ai/models/heygen/heygen-voice/turbo/api)
- [OpenAPI Schema](https://fal.ai/api/openapi/queue/openapi.json?endpoint_id=heygen/heygen-voice/turbo)

### fal.ai Platform

- [Platform Documentation](https://fal.ai/docs/documentation)
- [Python Client](https://fal.ai/docs/api-reference/client-libraries/python)
- [JavaScript Client](https://fal.ai/docs/api-reference/client-libraries/javascript)

### Other agent-readable surfaces

This file covers one model. To find anything else:

- [Platform overview](https://fal.ai/llms.txt): Entry points and representative endpoint IDs
- [Documentation index](https://fal.ai/docs/llms.txt): Every documentation page
- [Full documentation text](https://fal.ai/docs/llms-full.txt): The whole documentation inlined
- Any other model: `https://fal.ai/models/<endpoint-id>/llms.txt`
