Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -35,15 +35,16 @@ Android, iOS, and web (WASM).
|
|
| 35 |
| `tokens.txt` | phoneme → id table |
|
| 36 |
| `espeak-ng-data/` | espeak-ng `lfn`-voice data (phonemization) |
|
| 37 |
|
| 38 |
-
## Quick start
|
| 39 |
```bash
|
| 40 |
-
pip install -U sherpa-onnx
|
| 41 |
-
|
| 42 |
curl -O https://raw.githubusercontent.com/michsethowusu/nano-twi/main/examples/python/synthesize.py
|
| 43 |
-
python3 synthesize.py --model-dir ./
|
| 44 |
--text "Awurade ne me hwɛfoɔ, biribiara renhia me." --out twi.wav
|
| 45 |
# fast model: add --acoustic twi_ep045_steps2.onnx
|
| 46 |
```
|
|
|
|
| 47 |
|
| 48 |
## Notes
|
| 49 |
- Input is Asante Twi text in normal orthography (incl. `ɛ ɔ`); phonemized to IPA via espeak-ng `lfn`.
|
|
|
|
| 35 |
| `tokens.txt` | phoneme → id table |
|
| 36 |
| `espeak-ng-data/` | espeak-ng `lfn`-voice data (phonemization) |
|
| 37 |
|
| 38 |
+
## Quick start (only needs `sherpa-onnx`)
|
| 39 |
```bash
|
| 40 |
+
pip install -U sherpa-onnx
|
| 41 |
+
curl -L https://huggingface.co/ghananlpcommunity/nano-twi/resolve/main/nano-twi-sherpa-onnx.tar.gz | tar xz
|
| 42 |
curl -O https://raw.githubusercontent.com/michsethowusu/nano-twi/main/examples/python/synthesize.py
|
| 43 |
+
python3 synthesize.py --model-dir ./nano-twi \
|
| 44 |
--text "Awurade ne me hwɛfoɔ, biribiara renhia me." --out twi.wav
|
| 45 |
# fast model: add --acoustic twi_ep045_steps2.onnx
|
| 46 |
```
|
| 47 |
+
(Or fetch individual files with `hf download ghananlpcommunity/nano-twi --include "sherpa-onnx/*"`.)
|
| 48 |
|
| 49 |
## Notes
|
| 50 |
- Input is Asante Twi text in normal orthography (incl. `ɛ ɔ`); phonemized to IPA via espeak-ng `lfn`.
|