Skip to main content
Models
Speech endpoint (POST)
Need a model that listens and responds across turns? Use Higgs Realtime. Higgs TTS renders speech from text; it does not manage a conversation.

Models

Both models share the same endpoints, request fields, and price. Set model to choose one. The features below describe Higgs TTS 3.1. Pages mark where Higgs TTS 3 differs.

Features

  • Chat-native, low-latency streaming — hear audio within moments of sending text, either by streaming speech from a request or by sending text over a WebSocket as your LLM generates it. See Streaming.
  • 197 languages — 101 of them benchmarked with a WER/CER under 5. See Languages.
  • Instant voice cloning — zero-shot from a short reference clip and its transcript. See Voices.
  • Inline control tags — shape emotion, style, prosody, and sound effects with <|emotion:…|>, <|style:…|>, <|prosody:…|>, and <|sfx:…|>. See Tags.
  • Pronunciation dictionary — set how brand names, people’s names, and acronyms are spoken. See Pronunciation dictionary.
  • Timestamps — get the time each token is spoken, mapped back to your input, with the audio or as it streams. See Timestamps.

Try it in the playground

The fastest way to hear the model is the playground. Pick a voice, paste text, and press play.

Generate speech with the API

You need a Boson API key stored in BOSON_API_KEY, and available credit — new accounts must claim their free trial credit before their first API call. Set the key in your shell for the current session:
A minimal request needs Authorization, model, and input. Everything else is optional.

Use a preset voice

Use voice to choose a preset speaker.
See Voices for more preset speakers and samples.

Use reference audio

Use ref_audio to clone a voice from a short reference clip. Passing the audio transcript through ref_text can often improve generated audio quality.
To clone from a local file, either encode local file as base64 string or send as `multipart/form-data. Below code shows the latter.
You must own the right to clone the voice.
See Voices for best practices and reusable custom voices.

Fine-grained control

Inline tags control emotion, style, prosody, and sound effects in the generated audio. Add them to input, and the model adjusts the surrounding speech. For example:
See Tags for the complete list and sample audio.

Text normalization

Normalization rewrites the input so the model speaks it the way a person would read it aloud, expanding numbers, dates, times, currency, units, URLs, email addresses, phone numbers, abbreviations, and symbols into spoken form. It is on by default and leaves inline tags and ordinary prose untouched. Set normalize: false to synthesize the text exactly as written.
If language is not set, normalization infers the language from the text. If you know the language, set language to its ISO 639-3 code, such as eng or cmn, for the most reliable results.

Pronunciation dictionary

Use pronunciation_dictionary to set how specific words are spoken, such as brand names, people’s names, and acronyms. Each entry pairs a text to find in the input with the pronunciation to speak in its place. The pronunciation is spoken exactly as written: text normalization never rewrites it, and the dictionary works with normalize on or off.
Here Zyfera is replaced in any capitalization, and SQL only when written in capitals. How a text matches:
  • Case: capitalization is ignored unless the entry sets case_sensitive: true. Whitespace in text matches any run of whitespace in the input.
  • Whole words: in scripts written with spaces, a match can’t sit next to a letter, a digit, or _. acme matches in acme's and acme-branded, but not in acmes, 2acme, or acme_corp.
  • Scripts without spaces: in Chinese, Japanese, Korean, Thai, and similar scripts, a match can sit next to other characters, so 서울 matches in 서울에서. Traditional and Simplified Chinese characters match each other.
  • Several matches: the earliest match wins, and the longest one where two start at the same place. A pronunciation is never matched again, and nothing matches inside a control tag.
A dictionary has these limits:
  • At most 1,000 entries.
  • text and pronunciation are each 1 to 64 characters, with no leading or trailing whitespace and no control characters.
  • pronunciation holds only letters (accented letters included), spaces, apostrophes, hyphens, and middle dots, with at least one letter. Write numbers and symbols out as words.
  • text can’t contain control tags.
  • Two entries can’t match the same text, such as Acme and acme unless both are case-sensitive.
A dictionary that breaks a limit returns 400 invalid_field_value, with a message that names the entry, such as pronunciation_dictionary[3].pronunciation must contain a letter. Billing counts the text you send, not the pronunciations. With timestamps, a match is one entry on your text. In a form body (multipart/form-data or URL-encoded), send the dictionary as a JSON string. On the speech WebSocket, set it in start.request, and it applies to the whole session.

API reference

Full request body:
See the API reference for field details and additional options. To stream the audio, or the text as well, see Streaming.

Alternative ways to use the model

Beyond the hosted API, you can run the model yourself: