Skip to main content
Give HeyGen Voice a pronunciation for a name, brand, or unfamiliar term while keeping its written spelling. Choose where the rule should apply: For Text to Speech, use a public or instant voice with heygen-voice-1 or heygen-voice-1-turbo. Both completed speech and streaming 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.

Without IPA

Automatic pronunciation · 15.60 seconds

With inline IPA

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:

Set a pronunciation for one occurrence

Wrap the written word in <pron> and put its IPA in the ipa attribute, between slashes:
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:
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 · with inline IPA.

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:
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 for supported models and validation errors.