higgs-tts-3-4b-egy-phon · polishA (2026-09-10)
Higgs Audio v3 TTS 4B (bosonai/higgs-tts-3-4b, higgs_multimodal_qwen3: Qwen3-4B backbone, 8 audio codebooks × 1026,
delay pattern, 25 fps, 24 kHz, higgs-audio-v2-tokenizer codec) fine-tuned for Cairene Egyptian Arabic call-centre speech
(EgyVoice, Paymob agent). This revision is the version that passed a live-call test on 2026-09-10 ("accepted").
The weights here are the production fine-tune (paymob-b) with a LoRA "pronunciation polish" merged in (rank 32, alpha 64 on
q/k/v/o/gate/up/down). The tokenizer carries 42 extra phoneme tokens (ids 151727–151768) used by an optional front-end; plain
text never uses them, and plain text is the recommended mode.
What changed versus paymob-b (production weights)
Words the base model mispronounced are now said the Cairene way. Judged by a calibrated Gemini listening judge on 11 Paymob script sentences containing the hard words (plain text, temperature 0.7, top-k 40):
| model | hard-word occurrences wrong | heard as |
|---|---|---|
paymob-b (base) | 5 / 20 | tagdiim, kart, taksiit |
| main run ckpt-500 (rehearsal data only) | 2 / 19 | kort, tagdiim |
| polishA, seed 1234 | 0 / 20 | et-ta'diim, kaart, bel-kaart, et-ta'siit, temalliihuuli, 'omalaa'ak |
| polishA, seed 2 | 0 / 19 | same |
| polishA with phoneme spans (inline mode) | 3 / 19 | et-taqdiim, kert + MSA drift → do not use spans |
General quality is unchanged: Soniox WER 8 % / 9 % on the 40-sentence quick set and the 29-sentence Paymob set (base: 8 % / 9 %), 0 runaway sentences, 0 capped chunks on a 6.5-minute script render. Reference-voice similarity: same product-voice reference as production.
The two revisions side by side (polishA on main, polishB on branch polishB)
Same base (paymob-b, the production fine-tune), same tokenizer (42 phoneme tokens, unused by plain text), same product-voice reference,
same serving. They differ in how far the main run went and what the polish was trained on.
polishA (accepted on a live call, 10 Sep) | polishB (candidate, 11 Sep) | |
|---|---|---|
| Start point | main run checkpoint 500 | main run finished, checkpoint 3,500 (best dev loss 4.349 vs 4.372 at ckpt-500) |
| Polish data | 7,952 rows: Gemini round 1 (Paymob sentences, 4.7 h) ×2, domain pack ×2, 2,000 rehearsal | 14,971 rows: all Gemini audio ×1 (round 1 + round 2 general Egyptian, ≈18 h), hard-word sentences ×2 more, domain pack ×2, 2,000 rehearsal |
| Polish training | 700 steps, lr 3e-5, prompt modes text 0.5 / inline spans 0.35 / text+phon 0.15 | 1,000 steps, lr 4e-5, batch 1 × grad-accum 16, text prompts only |
| Hard words (11 Paymob sentences, Gemini judge) | 0 / 20 wrong | 1 / 19 wrong (بالكارت once with a short vowel) |
| Unseen general sentences (60, never trained on; judge every word) | 40 / 60 fully clean, 34 words flagged | 46 / 60 fully clean, 22 words flagged |
| Soniox WER quick (40) / Paymob (29) | 8 % / 9 % | 8 % / 10 % |
| Runaway / capped sentences | 0 | 0 |
| On SGLang-Omni at production sampling (T = 1.0) | not re-measured | hard words 1 / 19, identical to the PyTorch server |
| Best for | the Paymob script as written today (zero hard-word errors) | general Egyptian: fewer MSA "q"/hamza slips on words never seen in training |
Reference points: the untouched paymob-b scores 5 / 20 on the hard words and 37 / 60 clean on the unseen set; the finished main run alone
(no polish) scores 1 / 19 and 37 / 60. The residual error class in every revision is a Modern-Standard "q" for ق (رقم، أقصى، الرقمي) and a
final hamza (الكهرباء); polishB halves it versus the base. The agreed next step is a short polish on top of polishB with ق-rich sentences.
Both revisions carry the same serving/, training/, tools/, voices/ and docs/ folders, so either can be served or extended identically.
Training data
| set | clips | hours | note |
|---|---|---|---|
| Gemini 3.1 Flash TTS synthetic, 3 voices (Aoede, Kore, Leda), Egyptian instruction + pronunciation hints | 2,099 | 4.69 | 700 Paymob sentences with the hard words; number-aware QC (digits vs words is not an error); listened to and approved as the pronunciation reference |
| vocabulary pack (60 sentences × 2 voices) + earlier Gemini Paymob corpus | 957 | 2.07 | domain pack |
| rehearsal from the main-run corpus (product-voice + Egyptian corpora) | 2,000 | ≈2.5 | keeps general quality |
Public copy of the synthetic data (transcript = original generated text, never ASR output):
ehabnegm/paymob-egyptian-gemini-tts (3,056 clips, 6.77 h).
Training recipe
- Main run (
full_M4, thenfull_M6): LoRA r32/α64 + 42 phoneme-token embedding rows, 75,836 clips (Egyptian corpora + augmented S3 clips + domain pack ×3), lr 5e-5 cosine, batch 2 × grad-accum 8, target ≤480 frames, reference 150 frames of the same speaker group, prompt modes text / inline phoneme spans / text+phoneme block. Checkpoint 500 used as the polish start. - Polish (
polish_A): warm start from main-run ckpt-500; 7,952 rows = synthetic ×2 + domain pack ×2 + 2,000 rehearsal; 700 steps, lr 3e-5, embed-row lr 1e-3, prompt modes text 0.5 / inline 0.35 / text+phon 0.15; dev loss 4.379 (flat from step 400). - Export: LoRA merged, phoneme rows written back, saved as full
higgs_multimodal_qwen3safetensors (tied.*keys as in the base).
How to run exactly what was tested
serving/ contains the streaming OpenAI-compatible server that served the accepted live test, with the exact defaults (reference
voice voices/gemini_voice.wav + transcript, 150 reference frames, temperature 0.7, top-k 40, sentence chunking, incremental
decoding). Three commands:
huggingface-cli download ehabnegm/higgs-tts-3-4b-egy-phon --local-dir higgs-egy-polishA
cd higgs-egy-polishA && pip install -r serving/requirements.txt # torch 2.8 cu128 + pinned transformers commit
TTS_API_KEY=secret bash serving/run.sh # -> http://localhost:3030/v1/audio/speech
training/README.md explains how to continue the work (sentences → Gemini audio → filter → codes → polish → judge → export) with the exact commands and all pipeline code; serving/README.md documents every setting and endpoint; serving/production/ has the SGLang-Omni config and command used in
production; tools/ has the pronunciation judge and the hard-word test set; docs/report_2026-09-10.html is the full project report.
How to use
Serve exactly like bosonai/higgs-tts-3-4b (SGLang-Omni, vLLM-omni, or the reference implementation). Recommended settings for
the hard words: temperature 0.7, top-k 40 (production currently samples at 1.0). Rules that matter:
- Send plain Egyptian text. Write numbers as Arabic words (
تسعة ونص,اتنين فاصل خمسة وسبعين في المية), never digits;frontend/egy_numbers.pydoes this (verbalize(text)), including clock times and decimals. - Do not wrap words in
<phon>spans with this revision; the spans hurt (see table above).frontend/is kept for research. - One sentence per request gives the best prosody; sentences above ~28 words can be split at a comma.
- Reference: the product voice clip, first 150 frames (6 s), with its transcript as
<|ref_text|>.
Prompt layout (same as the base model): <|tts|> <|ref_text|> {ref text} <|ref_audio|> {ref frames} <|text|> {text} <|audio|> …
Latency (reference numbers)
| serving | first audio | notes |
|---|---|---|
| SGLang-Omni, fp8 KV (production stack) | 0.58 s | first byte p95 0.26 s at 8 concurrent, RTF ≈0.25 |
plain PyTorch streaming server (v3/server/tts_server.py, RTX 3090) | 0.40 s on the box, ≈0.7 s through a public tunnel | RTF ≈0.46–0.50, 50–56 frames/s |
Limitations
- Tuned for customer-service Egyptian Arabic; Modern Standard Arabic input will be read with Egyptian phonology.
- Pronunciation of rare words is stochastic at temperature 1.0; lower temperature makes the correct reading consistent.
- Single-speaker reference expected (the product voice); other voices work but were not evaluated for the hard words.
Revisions
polishA(this card, also onmain): accepted version, 2026-09-10.pilotB(folderpilotB/onmain): phoneme-span pilot, 600 steps on 10 h; kept for the front-end experiments.
Files
model.safetensors (bf16, 8.5 GB) · config.json · tokenizer.json / tokenizer_config.json (with the 42 phoneme tokens) ·
chat_template.jinja · serving/ (server + self-contained model/codec/text code + production config) · voices/ (reference voice + transcript) ·
tools/ (judge, test set, data-generation style) · docs/ (project report) · frontend/ (research front-end, not used in production) · LICENSE (Higgs Audio license).