> ## Documentation Index
> Fetch the complete documentation index at: https://developers.heygen.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Pronunciation

> Control how HeyGen Voice says names and brand terms in Text to Speech with inline IPA or a pronunciation dictionary. Compare the same script with and without IPA.

![](https://mintcdn.com/heygen-1fa696a7/hfMXXwJzjE7vBSYZ/images/theme/research-2.webp?fit=max\&auto=format\&n=hfMXXwJzjE7vBSYZ\&q=85\&s=d6ee10585b27ddaf8137d6ed67791708)

Give HeyGen Voice a pronunciation for a name, brand, or unfamiliar term while keeping its written spelling. Choose where the rule should apply:

| What you need | Use |
| - | - |
| A pronunciation for one occurrence, including different readings of the same name in one script | An inline `<pron ipa="/…/">word</pron>` tag in `text` |
| The same pronunciation every time a term appears in a TTS request | `pronunciation_dictionary` in the request body |

For Text to Speech, use a public or instant voice with `heygen-voice-1` or `heygen-voice-1-turbo`. Both [completed speech](https://developers.heygen.com/reference/generate-model-speech) and [streaming speech](https://developers.heygen.com/reference/stream-speech) accept inline IPA and pronunciation dictionaries.

## Listen: the same spelling, different pronunciations

The script says each name twice, with a different country each time. Compare the automatic reading with a version that supplies IPA for each occurrence.

> The same name can sound different across countries: Thomas in America, Thomas in France; José in Spain, José in Portugal; David in England, David in France. Same spelling, different pronunciation.

> [card] Without IPA
>
> <audio controls preload="metadata" />
>
> Loading audio…
>
> Automatic pronunciation · 15.60 seconds

> [card] With inline IPA
>
> <audio controls preload="metadata" />
>
> Loading audio…
>
> IPA supplied for each name · 13.02 seconds

Both samples use Annie on `heygen-voice-1`, `language: "en"`, and `expressiveness_boost: 0.5`. Both start with `[explaining to a confused customer]` and use the same `[pause]` tags. Only the inline IPA markup changes between the submitted requests. Timing can vary between takes; listen to the names themselves.

The inline version requests these pronunciations:

| Name and context | Requested IPA |
| - | - |
| Thomas in America | `/ˈtɑːməs/` |
| Thomas in France | `/tɔˈma/` |
| José in Spain | `/xoˈse/` |
| José in Portugal | `/ʒuˈzɛ/` |
| David in England | `/ˈdeɪvɪd/` |
| David in France | `/daˈvid/` |

## Set a pronunciation for one occurrence

Wrap the written word in `<pron>` and put its IPA in the `ipa` attribute, between slashes:

```xml wrap theme={null}
<pron ipa="/ˈtɑːməs/">Thomas</pron> in America, <pron ipa="/tɔˈma/">Thomas</pron> in France.
```

This lets the same spelling have different pronunciations within one request. The narration stays in English; the IPA gives a separate instruction for each name.

Send the full script to `POST /v3/models/audio/tts`:

```bash wrap theme={null}
curl -X POST "https://api.heygen.com/v3/models/audio/tts" \
  -H "X-Api-Key: $HEYGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d @- <<'JSON'
{
  "model": "heygen-voice-1",
  "voice_id": "330290724a1b470fb63153f34d4c0183",
  "language": "en",
  "text": "[explaining to a confused customer] The same name can sound different across countries: <pron ipa=\"/ˈtɑːməs/\">Thomas</pron> in America, <pron ipa=\"/tɔˈma/\">Thomas</pron> in France; [pause] <pron ipa=\"/xoˈse/\">José</pron> in Spain, <pron ipa=\"/ʒuˈzɛ/\">José</pron> in Portugal; [pause] <pron ipa=\"/ˈdeɪvɪd/\">David</pron> in England, <pron ipa=\"/daˈvid/\">David</pron> in France. [pause] Same spelling, different pronunciation.",
  "expressiveness_boost": 0.5,
  "with_timestamps": true
}
JSON
```

The response contains the generated `audio_url` and its `duration`. To make the automatic version, remove the `<pron>` wrappers while keeping the names, punctuation, audio tags, and other fields unchanged.

Download the exact request bodies used for the samples: [without IPA](https://developers.heygen.com/images/heygen-voice/pronunciation/without-ipa.request.json) · [with inline IPA](https://developers.heygen.com/images/heygen-voice/pronunciation/with-inline-ipa.request.json).

## Apply one pronunciation throughout a request

Use `pronunciation_dictionary` when every occurrence of a term should have the same pronunciation. Each key is the written term, and its value is slash-wrapped IPA:

```json wrap theme={null}
{
  "model": "heygen-voice-1",
  "voice_id": "330290724a1b470fb63153f34d4c0183",
  "language": "en",
  "text": "Thomas will host today. Please send your questions to Thomas.",
  "pronunciation_dictionary": {
    "Thomas": "/ˈtɑːməs/"
  }
}
```

Dictionary entries match whole terms without regard to case. An inline `<pron>` tag overrides the dictionary for the text it wraps. For the country comparison above, use inline tags so each occurrence can have its own pronunciation.

## Tips

* Keep IPA values between `/` slashes. The stress mark `ˈ` goes before the stressed syllable.
* A TTS dictionary can contain up to 100 entries. Term keys can be up to 128 characters and IPA values up to 512 characters. A request can apply up to 100 pronunciation occurrences across the dictionary and inline tags.
* Keep the voice, model, language, audio tags, and other settings the same when comparing pronunciation rules.
* Listen to the result in context before reusing a rule across scripts. See the [TTS pronunciation reference](https://developers.heygen.com/docs/voices/heygen-voice-speech.md#pronunciation) for supported models and validation errors.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.