Skip to main content

Africa TTS

Text-to-speech for 92 African languages and English, with voice cloning, built on Kyutai's Pocket TTS. Every language has a default voice, so all you need is text and a language code.

🎙️ Try it live · 🔊 Samples · 🤗 Model

An ongoing project: native-speaker feedback is what improves it most. See CONTRIBUTING.md.

⚡ Runs on a CPU, no GPU needed

Africa TTS speaks 2.4× faster than real time on 4 CPU cores, and starts streaming audio 0.17 s after it gets the text. A 10-second sentence takes about 4 seconds to generate, and playback can start almost at once. It has 110M parameters, and the on-device bundle (int8) is 209 MB, so it runs on laptops, servers and phones.

Measured on a dedicated 4-vCPU cloud machine (Modal); your laptop may be faster. Measure your own machine with benchmarks/speed.py; details in docs/BENCHMARKS.md.

🎯 Intelligible

On held-out sentences in 47 languages, transcribed by Omnilingual ASR, Africa TTS has a lower character error rate than MMS-TTS (9.0% vs 10.3%, better in 21 of 27 languages) and the 3.3B Sunbird Orpheus (5.9% vs 10.3%), and is close to the 813M OmniVoice (8.8% vs 8.4%) at a seventh of its size: benchmark.

Install

# CPU (laptops, servers): small CPU-only PyTorch
pip install africa-tts --extra-index-url https://download.pytorch.org/whl/cpu

# NVIDIA GPU (Linux): PyPI's PyTorch is the CUDA build
pip install africa-tts

English also needs espeak-ng (apt install espeak-ng / brew install espeak-ng). On macOS and Windows, plain pip install africa-tts gives the CPU build. The first time, it asks before downloading the model (about 440 MB) from Hugging Face, then caches it and works offline. In scripts, approve the download with --yes, AfricaTTS.load(download=True), or africa-tts --download beforehand.

Use

africa-tts "Akwaaba! Yɛfrɛ me Kofi." --lang twi -o twi.wav
africa-tts --list-languages
from africa_tts import AfricaTTS

tts = AfricaTTS.load()                                  # or AfricaTTS.load(device="cuda") on a GPU
audio = tts.generate("Akwaaba! Yɛfrɛ me Kofi.", lang="twi")              # default Twi voice
audio = tts.generate("Hello Ghana!", lang="eng", voice="my_voice.wav")  # clone a 3-10 s clip
tts.save(audio, "out.wav")
  • Languages: ISO 639-3 codes (twi, hau, yor, swh, zul, amh, eng, ...); see africa-tts --list-languages.
  • Numbers: spell them out ("twenty", not "20").

Run it elsewhere

API server HTTP, WebSocket streaming, OpenAI-compatible; Docker or Modal, CPU only: server/
On device sherpa-onnx bundles, C front end, Android wrapper: mobile/
Experimental languages 657 untrained languages, read through their closest trained one; help us test: docs/EXPERIMENTAL_LANGUAGES.md

More

License

Code: MIT (LICENSE). Model and default voices: CC-BY-NC-4.0. espeak-ng (English) is GPL-3.0-or-later. Built by AfriSpeech / Ghana NLP.

Metadata

Release files for africa-tts 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for africa-tts 0.3.0
File Size Uploaded Provenance Actions
africa_tts-0.3.0.tar.gz 791.8 kB With provenance Details for africa_tts-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for africa-tts 0.3.0
File Interpreter ABI Platform Actions
africa_tts-0.3.0-py3-none-any.whl Python 3 none any Details for africa_tts-0.3.0-py3-none-any.whl

Total release size: 822.1 kB

Release files / africa_tts-0.3.0.tar.gz

Download URL africa_tts-0.3.0.tar.gz
Size 791.8 kB
Tags Source
SHA-256 checksum
How to use checksums
955545134de967942c529c84a22002d4a87d8ded7eaae73c0cf92fb5fecf7c70
BLAKE2b-256 checksum
How to use checksums
f0edf8127ab29862ebb9bec30185391249587f2c0cffd6342844130a02b3b58b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

Release files / africa_tts-0.3.0-py3-none-any.whl

Download URL africa_tts-0.3.0-py3-none-any.whl
Size 30.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
649fa284b09d474904a14518e36416838289f4051e7f36f57bb3f829eaca6678
BLAKE2b-256 checksum
How to use checksums
53dd07e2632ff7c1d43bfed8ec65b05e6bec83572c857a14171d592ceddefbde
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

Security for africa-tts 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for africa_tts-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page