Downloads · 30 days
0
d6b057f/higgs-audio-v3-tts-cli
higgs-audio-v3-tts-cli is a text-to-speech model from d6b057f. Use it when you need text read aloud. The card lists the license as apache-2.0.
Pure PyTorch/transformers command-line inference for bosonai/higgs-audio-v3-tts-4b — no SGLang serving stack, no Docker, no HTTP server. Load the model, type text, get a 24 kHz wav.
Downloads · 30 days
0
Access
Public
Updated Jun 12, 2026
Repo size
—
Likes
2
Public
Click a slice to open those files.
.py68.6 KB · 90%
From the Hugging Face model README
Pure PyTorch/transformers command-line inference for bosonai/higgs-audio-v3-tts-4b — no SGLang serving stack, no Docker, no HTTP server. Load the model, type text, get a 24 kHz wav.
The official weights have no native transformers support (model type
higgs_multimodal_qwen3); the only published inference path is the
SGLang-Omni serving framework. This repo
ports the model logic from SGLang-Omni's reference implementation (Apache-2.0) into a
small standalone pipeline:
transformers.Qwen3Model (4B), weights remapped from the Higgs
checkpoint (body.* / tied.embedding.*).[8×1026, 2560], tied as the
output head; 8 codebook tokens per autoregressive step with the delay pattern
(BOC=1024 / EOC=1025, cb0-EOC + wind-down stopping).tied.embedding.modality_embeddings.0.model.* — no separate codec download.<|tts|> [<|ref_text|> transcript] [<|ref_audio|> …] <|text|> text <|audio|>,
with reference-audio embeddings pasted over placeholder positions for voice cloning.Measured ~53 AR steps/s (≈2× realtime; codec runs at 25 frames/s) on an RTX 5070 Ti (16 GB), bf16 backbone + fp32 codec, ~11 GB VRAM.
| File | Purpose |
|---|---|
chat_higgs_tts.py | CLI: interactive REPL + single-prompt mode |
higgs_tts_pipeline.py | Standalone model/sampler/codec pipeline |
higgs_audio_v2_tokenizer_hf.py | Vendored codec architecture (from SGLang-Omni) |
higgs_audio_v2_tokenizer_config.json | Vendored codec config |
download_higgs_tts.py | One-shot weights download |
pip install torch torchaudio transformers tokenizers safetensors soundfile
python download_higgs_tts.py # fetches bosonai/higgs-audio-v3-tts-4b (~8.5 GB) into ./higgs-audio-v3-tts-4b
Runtime is fully offline (HF_HUB_OFFLINE=1 is set by the script).
# Single prompt -> wav
python chat_higgs_tts.py -p "Hello, this is a test." -o out.wav
# Voice cloning (transcript improves fidelity)
python chat_higgs_tts.py -p "Have a nice day." --ref-audio ref.wav --ref-text "Reference transcript."
# Inline control tags (see PROMPTING.md in the base model repo)
python chat_higgs_tts.py -p "<|emotion:amusement|><|sfx:laughter|>Haha, no, seriously!"
# Long-form: synthesize per paragraph, chain the first chunk's voice for consistency
python chat_higgs_tts.py -p story.txt --split-paragraphs -o story.wav
# Interactive REPL (/voice, /temp, /tokens, /play, ...)
python chat_higgs_tts.py
The model naturally ends an utterance after ~20–30 s; --split-paragraphs handles
long texts by synthesizing blank-line-separated paragraphs independently and reusing
the first chunk's generated audio as the cloning reference for the rest.