[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-114614":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":23,"topics":25,"createdAt":10,"pushedAt":29,"updatedAt":30,"readmeContent":31,"aiSummary":32,"trendingCount":16,"starSnapshotCount":16,"syncStatus":33,"lastSyncTime":34,"discoverSource":35},114614,"tiny-voca","n4ze3m\u002Ftiny-voca","n4ze3m","A 4.5M-parameter two-voice English text-to-speech model, trained from scratch","https:\u002F\u002Ftiny-voca.n4ze3m.com",null,"Python",884,105,5,1,0,29,332,663,148,100.08,"Apache License 2.0",false,"main",[26,27,28],"onnx","text-to-speech","tts","2026-11-23 16:51:11","2026-11-23 19:56:16","# tiny-voca\n\ntiny-voca is a small English text-to-speech model. It has two voices, 4.5M\nparameters, and runs on a CPU or in the browser.\n\n[Demo](https:\u002F\u002Ftiny-voca.n4ze3m.com) · [Weights](https:\u002F\u002Fhuggingface.co\u002Fn4ze3m\u002Ftiny-voca) · [Dataset](https:\u002F\u002Fhuggingface.co\u002Fdatasets\u002Fn4ze3m\u002Ftiny-voca)\n\n## Features\n\n- **Small**: 4,537,291 parameters, 18 MB, waveform generator included.\n- **Fast**: about 70x real time on four CPU threads.\n- **Two voices**: F2 (female) and M2 (male), American English, 24 kHz.\n- **Runs anywhere**: PyTorch, ONNX Runtime, and ONNX Runtime Web.\n- **Open**: code, weights, training recipe and dataset. Trained from scratch.\n\n## Install\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fn4ze3m\u002Ftiny-voca.git\ncd tiny-voca\npip install -e \".[own]\"\nhf download n4ze3m\u002Ftiny-voca --local-dir weights\nexport DIZIONE_DATA=weights\u002Fphonemizer\n```\n\n## Usage\n\n```bash\npython -m tiny_voca.infer \\\n  --checkpoint weights\u002Ftiny-voca.pt \\\n  --voice F2 \\\n  --text \"Hello! This is tiny voca.\" \\\n  --output hello.wav\n```\n\n| Option | Default | Meaning |\n|---|---|---|\n| `--text-file` | | Read the text from a file instead of `--text` |\n| `--voice` | `F2` | `F2` or `M2` |\n| `--speed` | 1.0 | Speaking rate |\n| `--pitch-shift` | 0 | Raise or lower the pitch |\n| `--pitch-range` | 1.0 | More or less pitch movement |\n\nLong text is fine. It is read one sentence at a time and the audio is joined.\nA text that ends without a mark gets a full stop, so the last word does not\nbreak off. A sentence with nothing to read, such as one in another script, is\nskipped. The output never peaks above 0.99, so it does not clip as a 16-bit\nWAV. In Python, `tiny_voca.infer.speak_text` does the same.\n\n## ONNX\n\n```bash\npython -m tiny_voca.export --checkpoint weights\u002Ftiny-voca.pt --output tiny-voca.onnx\n```\n\nA ready file is in the weights repository as `onnx\u002Fmodel.onnx`. The\n[model card](https:\u002F\u002Fhuggingface.co\u002Fn4ze3m\u002Ftiny-voca) shows how to call it.\n\n## Web demo\n\nThe [demo](https:\u002F\u002Ftiny-voca.n4ze3m.com) runs the model in the browser. It\nplays each sentence as soon as it is made, and keeps the whole clip in the\nplayer. Its source is in `web\u002F`.\n\n```bash\ncd web\nbash fetch_assets.sh \u002Fpath\u002Fto\u002Fdizione\nnpx wrangler dev\n```\n\n## Training\n\n```bash\nexport TINY_VOCA_FRONTEND=own\npython -m tiny_voca.prepare --inputs data\u002Ftrain-*.parquet --split train --output features\npython -m tiny_voca.annotate --features features --output annotations\npython -m tiny_voca.train --train annotations\u002Ftrain.jsonl --validation annotations\u002Fvalidation.jsonl \\\n  --output runs\u002FNAME --steps 104000 --gan-start 8000 --gan-ratio 0.7 --teacher-final 0\npython -m tiny_voca.evaluate --checkpoint runs\u002FNAME\u002Finference.pt --annotations annotations --output eval\u002FNAME\n```\n\nThe released weights took 7.7 hours on one RTX 4090. More about the model and\nthe data is in [docs\u002Fmodel.md](docs\u002Fmodel.md).\n\n## Tests\n\n```bash\nPYTHONPATH=src:tests python -m unittest discover -s tests\n```\n\n## Limits\n\n- English only. Two fixed voices. No voice cloning.\n- The F2 voice sounds younger than intended. A more mature voice is planned.\n- Foreign names and odd spellings are often read wrong.\n- No streaming yet.\n\n## Community\n\nBuilt by other people on top of tiny-voca. I have not tested them.\n\nLanguages and voices:\n\n- [apptor-tiny-tts](https:\u002F\u002Fhuggingface.co\u002Fapptor\u002Fapptor-tiny-tts): German.\n- [tiny-voca-it](https:\u002F\u002Fgithub.com\u002Fcarbogninalberto\u002Ftiny-voca-it): Italian.\n- [zerre-tts](https:\u002F\u002Fgithub.com\u002Ferkinemreta1\u002Fzerre-tts): Turkish.\n- [korean-tts](https:\u002F\u002Fgithub.com\u002Fooodev\u002Fkorean-tts): Korean, and Korean mixed with English.\n- [slyszeglosy](https:\u002F\u002Fgithub.com\u002Fdamaon\u002Fslyszeglosy): Polish.\n- [mini-voz](https:\u002F\u002Fgithub.com\u002FElMariones\u002Fmini-voz): Spanish, with a Castilian accent.\n- [tiny-voca-es](https:\u002F\u002Fgithub.com\u002FstdevMac\u002Ftiny-voca): Spanish from Spain, with a browser demo.\n- [alpa](https:\u002F\u002Fhuggingface.co\u002F77ethers\u002Falpa): Sanskrit, fine-tuned from tiny-voca on a CPU.\n- [fiato](https:\u002F\u002Fhuggingface.co\u002Fcfahlgren1\u002Ffiato): English, with sighs, exhales and gasps.\n\nPorts and apps:\n\n- [voca](https:\u002F\u002Fgithub.com\u002Fsultson\u002Fvoca): a rewrite in Rust.\n- [tiny-voca-esp32s3](https:\u002F\u002Fgithub.com\u002Fngxson\u002Ftiny-voca-esp32s3): runs on an ESP32-S3 microcontroller.\n- [tiny-voca-dashboard](https:\u002F\u002Fgithub.com\u002Fkleenpulse\u002Ftiny-voca-dashboard): a local dashboard.\n- [tinyvoca](https:\u002F\u002Fgithub.com\u002Fspurious-cox\u002Ftinyvoca): a Mac app.\n- [tiny-voca-esp32s3](https:\u002F\u002Fgithub.com\u002Fngxson\u002Ftiny-voca-esp32s3): ESP32-S3 port.\n\nSame idea, other sounds:\n\n- [tinygroove](https:\u002F\u002Fgithub.com\u002Ftotomanov\u002Ftinygroove): a drum machine with no samples.\n\nMade something? Open an issue and I will add it.\n\n## Cost\n\nThe whole project cost $9.56 of GPU time on one rented RTX 4090. That is the\ndataset, the failed tries and the final training run.\n\n![Cost breakdown](docs\u002Fcost.png)\n\n## Support\n\nIt cost less than a pizza to make. If you like it, you can buy me one:\nhttps:\u002F\u002Fko-fi.com\u002Fn4ze3m\n\n## License\n\nApache-2.0 for code and weights. CC BY 4.0 for the dataset.\n\n## Citation\n\n```bibtex\n@software{nazeem2026tinyvoca,\n  author = {Nazeem, Muhammed},\n  title  = {tiny-voca: a 4.5M-parameter two-voice English text-to-speech model},\n  year   = {2026},\n  url    = {https:\u002F\u002Fhuggingface.co\u002Fn4ze3m\u002Ftiny-voca}\n}\n```\n","tiny-voca 是一个从零训练的轻量级英文文本转语音（TTS）模型，仅含453万参数、18MB体积，支持CPU和浏览器端实时推理。核心功能包括双音色（F2女性\u002F M2男性）、24kHz采样率、可调语速与音高、端到端波形生成，且完整开源训练代码、权重、数据集及ONNX\u002FWeb部署方案。适用于资源受限场景下的离线语音合成，如嵌入式设备、Web应用、教育工具或隐私敏感的本地化TTS服务。",2,"2026-11-24 04:49:12","CREATED_QUERY"]