michsethowusu commited on
Commit
3afd92e
·
verified ·
1 Parent(s): b6127fc

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +5 -4
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 "huggingface_hub[cli]"
41
- hf download ghananlpcommunity/nano-twi --include "sherpa-onnx/*" --local-dir ./model
42
  curl -O https://raw.githubusercontent.com/michsethowusu/nano-twi/main/examples/python/synthesize.py
43
- python3 synthesize.py --model-dir ./model/sherpa-onnx \
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`.