Full NZG NZG 73 model: README.md
Browse files123---license: apache-2.0---123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735---base_model:- Qwen/Qwen3-0.6Blanguage:- aae- aal- aao- ab- abb- abn- abr- abs- abv- acm- acw- acx- adf- adx- ady- aeb- aec- af- afb- afo- ahl- ahs- ajg- aju- ala- aln- alo- am- amu- an- anc- ank- anp- anw- aom- apc- apd- arb- arq- ars- ary- arz- as- ast- avl- awo- ayl- ayp- az- ba- bag- bas- bax- bba- bbj- bbl- bbu- bce- bci- bcs- bcy- bda- bde- bdm- be- beb- bew- bfd- bft- bg- bgp- bhb- bhh- bho- bhp- bhr- bjj- bjk- bjn- bjt- bkh- bkm- bky- bmm- bmq- bn- bnm- bnn- bns- bo- bou- bqg- br- bra- brh- bri- brx- bs- bsh- bsj- bsk- btm- btv- bug- bum- buo- bux- bwr- bxf- byc- bys- byv- byx- bzc- bzw- ca- ccg- ceb- cen- cfa- cgg- chq- cjk- ckb- ckl- ckr- cky- cnh- cpy- cs- cte- ctl- cut- cux- cv- cy- da- dag- dar- dav- dbd- dcc- de- deg- dgh- dgo- dje- dmk- dml- dru- dty- dua- dv- dyu- dzg- ebr- ebu- ego- eiv- eko- ekr- el- elm- en- eo- es- esu- et- eto- ets- etu- eu- ewo- ext- eyo- fa- fan- fat- ff- ffm- fi- fia- fil- fip- fkk- fmp- fr- fub- fuc- fue- fuf- fuh- fui- fuq- fuv- fy- ga- gbm- gbr- gby- gcc- gdf- gej- ges- ggg- gid- gig- giz- gjk- gju- gl- glw- gn- gol- gom- gsl- gu- gui- gur- guz- gv- gwc- gwe- gwt- gya- gyz- ha- hah- hao- haw- haz- hbb- he- hem- hi- hia- hkk- hla- hno- hoj- hr- hsb- ht- hu- hue- hul- hux- hwo- hy- hz- ia- ibb- id- ida- idu- ig- ijc- ijn- ik- ikw- is- ish- iso- it- its- itw- itz- ja- jal- jax- jgo- jmx- jns- jqr- juk- juo- jv- ka- kab- kai- kaj- kam- kbd- kbl- kbt- kcq- kdh- kea- keu- kfe- kfk- kfp- khg- khw- kj- kjc- kjk- kk- kln- kls- km- kmr- kmy- kn- kna- knn- ko- kol- koo- kpo- kqo- ks- ksd- ksf- kto- kuh- kvx- kw- kwm- kxp- ky- kyx- lag- lb- lcm- ldb- lg- lij- lir- lkb- lla- ln- lnu- lo- loa- lrk- lss- lt- ltg- lto- lua- luo- lus- lv- lwg- mab- maf- mai- mau- max- mbo- mcf- mcn- mcx- mdd- mde- mdf- mek- mer- meu- mfm- mfn- mfo- mfv- mgg- mgi- mhk- mhr- mi- mig- miu- mk- mkf- mki- ml- mlq- mn- mne- mni- mqy- mr- mrj- mrr- mrt- ms- mse- msh- msw- mt- mtr- mtu- mtx- mua- mug- mui- mve- mvy- mxs- mxu- mxy- my- myv- mzl- nal- nan- nap- nb- nbh- ncf- nco- ncx- ndi- ng- ngi- nhg- nhi- nhn- nhq- nja- nl- nla- nlv- nmg- nmz- nn- nnh- 'no'- noe- npi- nso- ny- nyu- oc- odk- odu- ogo- om- orc- oru- ory- os- pa- pbs- pbt- pbu- pcm- pex- phl- phr- pip- piy- pko- pl- plk- plt- pmq- pms- pmy- pnb- poc- poe- pow- prq- ps- pst- pt- pua- pwn- qug- qum- qup- qur- qus- quv- qux- quy- qva- qvi- qvj- qvl- qwa- qws- qxa- qxp- qxt- qxu- qxw- rag- rm- ro- rob- rof- roo- rth- ru- rup- rw- sa- sah- sat- sau- say- sbn- sc- scl- scn- sd- sei- shu- si- sip- siw- sjr- sk- skg- skr- sl- sn- snc- snk- so- sol- sps- sq- sr- src- sro- ssi- ste- sua- sv- sva- sw- szy- ta- tan- tar- tay- tbf- tcf- tcy- tdn- tdx- te- tg- tgc- th- the- thq- thr- thv- ti- tig- tio- tk- tkg- tkt- tli- tlp- tn- tok- tpl- tpz- tqp- tr- trp- trq- trv- trw- tt- ttj- ttr- ttu- tui- tul- tuq- tuv- tuy- tvo- tvu- tw- twu- txs- txy- udl- ug- uk- uki- umb- ur- ush- uz- uzn- vai- var- ver- vi- vmc- vmj- vmm- vmp- vmz- vot- vro- wbl- wci- weo- wes- wja- wji- wo- wof- xh- xhe- xka- xmf- xmv- xmw- xpe- xti- xtu- yaq- yav- yay- ydd- ydg- yer- 'yes'- yi- yo- yue- zga- zgh- zh- zoc- zoh- zor- zpv- zpy- ztg- ztn- ztp- zts- ztu- zu- zzalicense: apache-2.0pipeline_tag: text-to-speechtags:- zero-shot- multilingual- voice-cloning- voice-design---# OmniVoice 🌍<p align="center"><img width="200" height="200" alt="OmniVoice" src="https://zhu-han.github.io/omnivoice/pics/omnivoice.jpg" /></p><p align="center"><a href="https://huggingface.co/k2-fsa/OmniVoice"><img src="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Model-FFD21E" alt="Hugging Face Model"></a> <a href="https://huggingface.co/spaces/k2-fsa/OmniVoice"><img src="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Space-blue" alt="Hugging Face Space"></a> <a href="https://huggingface.co/papers/2604.00688"><img src="https://img.shields.io/badge/arXiv-Paper-B31B1B.svg"></a> <a href="https://github.com/k2-fsa/OmniVoice"><img src="https://img.shields.io/badge/GitHub-Code-181717?logo=GitHub" alt="GitHub Code"></a> <a href="https://zhu-han.github.io/omnivoice"><img src="https://img.shields.io/badge/GitHub.io-Demo_Page-blue?logo=GitHub&style=flat-square"></a></p>OmniVoice is a massive multilingual zero-shot text-to-speech (TTS) model that scales to over 600 languages. Built on a novel diffusion language model-style architecture, it delivers high-quality speech with superior inference speed, supporting voice cloning and voice design.- **Paper:** [OmniVoice: Towards Omnilingual Zero-Shot Text-to-Speech with Diffusion Language Models](https://huggingface.co/papers/2604.00688)- **Repository:** [GitHub](https://github.com/k2-fsa/OmniVoice)- **Demo:** [Hugging Face Space](https://huggingface.co/spaces/k2-fsa/OmniVoice)## Key Features- **600+ Languages Supported**: The broadest language coverage among zero-shot TTS models.- **Voice Cloning**: State-of-the-art voice cloning quality from a short reference audio.- **Voice Design**: Control voices via assigned speaker attributes (gender, age, pitch, dialect/accent, whisper, etc.).- **Fast Inference**: RTF as low as 0.025 (40x faster than real-time).- **Diffusion Language Model Architecture**: A clean, streamlined, and scalable design that delivers both quality and speed.## Sample UsageTo get started, install the `omnivoice` library:```bashpip install omnivoice```### Python APIYou can use OmniVoice for zero-shot voice cloning as follows:```pythonfrom omnivoice import OmniVoiceimport torchimport torchaudio# Load the modelmodel = OmniVoice.from_pretrained("k2-fsa/OmniVoice",device_map="cuda:0",dtype=torch.float16)# Generate audioaudio = model.generate(text="Hello, this is a test of zero-shot voice cloning.",ref_audio="ref.wav",ref_text="Transcription of the reference audio.",) # audio is a list of `torch.Tensor` with shape (1, T) at 24 kHz.torchaudio.save("out.wav", audio[0], 24000)```## Citation```bibtex@article{zhu2026omnivoice,title={OmniVoice: Towards Omnilingual Zero-Shot Text-to-Speech with Diffusion Language Models},author={Zhu, Han and Ye, Lingxuan and Kang, Wei and Yao, Zengwei and Guo, Liyong and Kuang, Fangjun and Han, Zhifeng and Zhuang, Weiji and Lin, Long and Povey, Daniel},journal={arXiv preprint arXiv:2604.00688},year={2026}}```
README.md+735-3