Nano Twi
Fast, offline Asante Twi TTS: a Matcha-TTS acoustic model + Vocos vocoder, exported to ONNX and served with sherpa-onnx. Runs on CPU at several× realtime — desktop, Android, iOS, and web (WASM).
Fuente del modelo
- Tipo
- Other
- Tamaño del archivo
- 51,4–209 MB
- Versión
- vRevision 427e8e3
- Actualizado
- 19 oct 2026
- Descargas
- 0
- Fuente
- Hugging Face
Descripción de la fuente
nano-twi — Asante Twi Text-to-Speech
Fast, offline Asante Twi TTS: a Matcha-TTS acoustic model + Vocos vocoder, exported to ONNX and served with sherpa-onnx. Runs on CPU at several× realtime — desktop, Android, iOS, and web (WASM).
➡️ Full docs, code, and Python / web / mobile examples: https://github.com/michsethowusu/nano-twi 🔊 Live demo: https://huggingface.co/spaces/ghananlpcommunity/nano-twi
Files (sherpa-onnx/)
| File | Role |
|---|---|
twi_ep045_steps4.onnx | acoustic model — default, 4 ODE steps, best quality |
twi_ep045_steps2.onnx | acoustic model — fast, 2 ODE steps, lower quality |
vocos-22khz-univ.onnx | Vocos universal vocoder |
tokens.txt | phoneme → id table |
espeak-ng-data/ | espeak-ng lfn-voice data (phonemization) |
Quick start (only needs sherpa-onnx)
pip install -U sherpa-onnx
curl -L -o nano-twi.zip https://github.com/michsethowusu/nano-twi/releases/download/v1.0/nano-twi-sherpa-onnx.zip
unzip nano-twi.zip
curl -O https://raw.githubusercontent.com/michsethowusu/nano-twi/main/examples/python/synthesize.py
python3 synthesize.py --model-dir ./nano-twi \
--text "Awurade ne me hwɛfoɔ, biribiara renhia me." --out twi.wav
# fast model: add --acoustic twi_ep045_steps2.onnx
(Or fetch individual files with hf download ghananlpcommunity/nano-twi --include "sherpa-onnx/*".)
Notes
- Input is Asante Twi text in normal orthography (incl.
ɛ ɔ); phonemized to IPA via espeak-nglfn. - Single voice — not a voice-cloning model.
- Use the bundled
espeak-ng-data/as-is (built with eSpeak NG 1.52.0) and sherpa-onnx ≥ 1.12; swapping in different espeak data can change pronunciation.
How it was built
Finetuned from the English LJSpeech Matcha-TTS checkpoint on the Asante Twi subset of
michsethowusu/ghana-speech, phonemized
with the espeak-ng lfn (Lingua Franca Nova) voice (which maps Twi orthography to clean IPA).
License
MIT. Matcha-TTS, Vocos, sherpa-onnx, and espeak-ng retain their respective licenses.
Fuentes
1 fuente
Fuentes
1 fuenteVerificado 29 ago
Download files
Artefactos del modelo
9 artefactos
Artefactos del modelo
9 artefactossherpa-onnx/twi_ep045_steps2.onnx
onnx · 70,2 MB · SHA-256 bbc849d5d508…987a · Hugging Face
Download filesherpa-onnx/twi_ep045_steps4.onnx
onnx · 70,6 MB · SHA-256 2d11d0a75a12…2bc8 · Hugging Face
Download filesherpa-onnx/vocos-22khz-univ.onnx
onnx · 51,4 MB · SHA-256 0574a135aa1d…0081 · Hugging Face
Download fileExtractos de fuentes
2 extractos
Extractos de fuentes
2 extractos--- license: mit language: - tw pipeline_tag: text-to-speech tags: - text-to-speech - tts - matcha-tts - vocos - sherpa-onnx - twi - akan - ghana - onnx --- # nano-twi — Asante Twi Text-to-Speech Fast, **offline** Asante Twi TTS: a [Matcha-TTS](https://github.com/shivammehta25/Matcha-TTS) acoustic model + [Vocos](https://github.com/gemelo-ai/vocos) vocoder, exported to ONNX and served with [sherpa-onnx](https://github.com/k2-fsa/sherpa-onnx). Runs on CPU at several× realtime — desktop, Android, iOS, and web (WASM). ➡️ **Full docs, code, and Python / web / mobile examples:** **https://github.com/michsethowusu/nano-twi** 🔊 **Live demo:** https://huggingface.co/spaces/ghananlpcommunity/nano-twi ## Files (`sherpa-onnx/`) | File | Role | |------|------| | `twi_ep045_steps4.onnx` | acoustic model — **default**, 4 ODE steps, best quality | | `twi_ep045_steps2.onnx` | acoustic model — **fast**, 2 ODE steps, lower quality | | `vocos-22khz-univ.onnx` | Vocos universal vocoder | | `tokens.txt` | phoneme → id table | | `espeak-ng-data/` | espeak-ng `lfn`-voice data (phonemization) | ## Quick start (only needs `sherpa-onnx`) ```bash pip install -U sherpa-onnx curl -L -o nano-twi.zip https://github.com/michsethowusu/nano-twi/releases/download/v1.0/nano-twi-sherpa-onnx.zip unzip nano-twi.zip curl -O https://raw.githubusercontent.com/michsethowusu/nano-twi/main/examples/python/synthesize.py python3 synthesize.py --model-dir ./nano-twi \ --text "Awurade ne me hwɛfoɔ, biribiara renhia me." --out twi.wav # fast model: add --acoustic twi_ep045_steps2.onnx ``` (Or fetch individual files with `hf download ghananlpcommunity/nano-twi --include "sherpa-onnx/*"`.) ## Notes - Input is Asante Twi text in normal orthography (incl. `ɛ ɔ`); phonemized to IPA via espeak-ng `lfn`. - Single voice — not a voice-cloning model. - Use the bundled `espeak-ng-data/` as-is (built with eSpeak NG 1.52.0) and **sherpa-onnx ≥ 1.12**; swapping in different espeak data can change pronunciation. ## How it was built Finetuned from the English LJSpeech Matcha-TTS checkpoint on the Asante Twi subset of [michsethowusu/ghana-speech](https://huggingface.co/datasets/michsethowusu/ghana-speech), phonemized with the espeak-ng `lfn` (Lingua Franca Nova) voice (which maps Twi orthography to clean IPA). ## License MIT. Matcha-TTS, Vocos, sherpa-onnx, and espeak-ng retain their respective licenses.
Source context: 0 downloads · 1 likes · Pipeline text-to-speech · Repo ghananlpcommunity/nano-twi
