Zum Inhalt springen
ModelAufgelistetExtern
Browse files

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).

ArtOtherVersionRevision 427e8e3CBewertung

Modellquelle

Art
Other
Dateigröße
51,4–209 MB
Version
vRevision 427e8e3
Aktualisiert
19. Okt. 2026
Downloads
0
Quelle
Hugging Face

Quellenbeschreibung

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/)

FileRole
twi_ep045_steps4.onnxacoustic model — default, 4 ODE steps, best quality
twi_ep045_steps2.onnxacoustic model — fast, 2 ODE steps, lower quality
vocos-22khz-univ.onnxVocos universal vocoder
tokens.txtphoneme → 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-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, 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.

Quellen

1 Quelle
Hugging FacePrimärVersion 427e8e37007544d47d5a9fd6b5376fdb2bf8094e
huggingface.co/ghananlpcommunity/nano-twi/tree/427e8e37007544d47d5a9fd6b5376fdb2bf8094e

Verifiziert 29. Aug.

Download files

Modellartefakte

9 Artefakte

checkpoints/last.ckpt

ckpt · 209 MB · SHA-256 1d7259f9870b…e71c · Hugging Face

Download file

checkpoints/twi_epoch=041.ckpt

ckpt · 209 MB · SHA-256 46f1efab3d74…e37e · Hugging Face

Download file

checkpoints/twi_epoch=042.ckpt

ckpt · 209 MB · SHA-256 d3965ed8a1d6…151f · Hugging Face

Download file

checkpoints/twi_epoch=043.ckpt

ckpt · 209 MB · SHA-256 615a9870253a…b121 · Hugging Face

Download file

checkpoints/twi_epoch=044.ckpt

ckpt · 209 MB · SHA-256 cd1b496d85fd…90cd · Hugging Face

Download file

checkpoints/twi_epoch=045.ckpt

ckpt · 209 MB · SHA-256 1d7259f9870b…e71c · Hugging Face

Download file

sherpa-onnx/twi_ep045_steps2.onnx

onnx · 70,2 MB · SHA-256 bbc849d5d508…987a · Hugging Face

Download file

sherpa-onnx/twi_ep045_steps4.onnx

onnx · 70,6 MB · SHA-256 2d11d0a75a12…2bc8 · Hugging Face

Download file

sherpa-onnx/vocos-22khz-univ.onnx

onnx · 51,4 MB · SHA-256 0574a135aa1d…0081 · Hugging Face

Download file

Quellenauszüge

2 Auszüge

--- 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