Instructions to use boar000/amharic-tts-v3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use boar000/amharic-tts-v3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="boar000/amharic-tts-v3", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForSeq2SeqLM model = AutoModelForSeq2SeqLM.from_pretrained("boar000/amharic-tts-v3", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Amharic TTS, v3
A full fine-tune of inclusionAI/Ming-3.0-tts-0.5B for Amharic, at step 55,534 of a three epoch run.
Output is mono at 44.1 kHz, the rate in config.json. 699,065,794 parameters were trained, which is the full model.
The point of this checkpoint is that it reads digits without a text frontend.
4,750,000 reaches the model as that literal string and is spoken as words.
No normaliser, no number-to-word step, no preprocessing.
What is in the folder
model.safetensors weights, 2.96 GB
config.json architecture, including the audio tokenizer config
tokenizer.json and friends the text tokenizer
campplus.onnx CAM++ speaker encoder, 192-d embeddings
generation_config.json
sft_provenance.json base model and training step
How to run it
The weights do not include the inference code. Clone the upstream repo, which is MIT:
git clone https://github.com/inclusionAI/Ming-3.0-tts
pip install -r Ming-3.0-tts/requirements.txt
Then, from a directory that can import ming_tts and spkemb_extractor:
# 1. turn any 5 to 10 second Amharic clip into a speaker embedding
python make_spk.py --wav reference.wav --campplus campplus.onnx --out speaker.pt
# 2. synthesise
python run.py --text "αα¬ α αα΅ 3 α₯αααα αααα’" --voice speaker.pt --out out.wav
run.py and make_spk.py are in this repo and are thin wrappers over MingTTS.
The model is conditioned on a 192-d CAM++ embedding, not on a voice name. Any clean 5 to 10 second clip works as the reference. Use one speaker only.
Known limits, read before filing a bug
- Long paragraphs truncate. Past roughly 15 seconds of expected speech the model stops early or compresses the passage. On the external benchmark it read 0.66 of the human reference duration against 0.99 for the base model. Chunk the text at sentence boundaries if you need long output.
- Three of sixty tag prompts loop. Prompts containing
[Cough]or[Laughter]occasionally run for thirty seconds instead of three. Capmax_decode_steps. - No inline tags were trained. Bare
[Laughter],[Sigh],[Cough]and[Breathing]only. A tag inside a sentence works sometimes and is not a supported path. - English is untrained. Code-switch works at the level of a borrowed noun, not a clause.
- Two thirds of the number training data used 2.4 voices per value rather than the 3 the corpus holds, so rare values are learned from fewer speakers.
Measured quality
Character and word error rates against the words label, two local recognisers,
lower is better. The base is gheero-Leyu/amharic-omnivoice-tts run zero-shot.
| set | rows | v3 cer | base cer | v3 value match |
|---|---|---|---|---|
| 240 number prompts | 240 | 15.5 | 29.4 | 131 of 240 |
| 61 code-switch prompts | 61 | 46.6 | 54.1 | 43 of 57 |
| 87 Addis AI short and medium prompts | 56 | 2.6 | 2.8 | n/a |
| 31 Addis AI long prompts | 31 | 21.9 | 4.2 | n/a |
On a blind listening test with five people and twenty pairs, v3 took 58 votes against 14, and lost only the two long paragraph pairs.
Licence and provenance
MIT, inherited from the base model. The fine-tune is by the author of this repo. Training data: Amharic speech from FLEURS, Waxal and Horn-ASR, non-speech sounds from VocalSound (CC BY 4.0), and synthetic numbers rendered with 96 reference voices. No reference voice is redistributed here; bring your own clip.
This is a research checkpoint, not a production service.
- Downloads last month
- 4