← All models
HeyGen Voice turns text into natural speech with a library voice or an instant clone from a reference clip.
Details
- Accepts
- text
Pricing
- Price
- 0.00375 cr / character
Prices in credits (1 credit = $0.01).
Data schema
Input
| Field | Type | Description |
|---|---|---|
| textrequired | string | The text to speak. |
| voice | stringenum: Jonah, Nadine, Tabitha, Soren, Elowen, Vincent… | HeyGen public voice. Ignored when reference_audio_url is set. |
| language | — | Language of the text. Detected from the text when omitted. |
| reference_audio_url | — | Recording of a single speaker to clone instead of using a public voice. Only the first 3 minutes are used. |
| expressiveness_boost | number | How expressive the delivery is. |
| enable_safety_checker | boolean | Authorized callers may set false to request relaxed screening. |
Output
| Field | Type | Description |
|---|---|---|
| audio | — | Generated speech as a 44.1 kHz WAV file. |
| duration | number | Duration of the audio in seconds. |