google-asr-africa
Transcribe African-language speech with Google's free web ASR endpoint — only for the languages where it actually works.
Google's free endpoint silently falls back to English for unsupported languages, so you can get English "transcripts" of your African audio. This package only ships languages we've verified transcribe in their own orthography — with a resumable batch transcriber and a probe to test new ones.
Install
pip install google-asr-africa
Quick start
# list the verified languages
google-asr-africa list-languages
# transcribe a folder of audio (resumable, rate-limited)
google-asr-africa transcribe data/amharic_clips --language amharic
from google_asr_africa import transcribe_folder
tr = transcribe_folder('data/kirundi_clips', language='rn', rpm=50)
print(tr.stats) # {'ok': 120, 'unknown': 3, ...}
text = tr.transcripts['clip_00042.flac']
Batches are crash-safe: a rerun continues where a stopped run left off and retries only transient failures.
Verify a new language
google-asr-africa probe rg --audio my_kiraundi.wav
# SUPPORTED / UNSUPPORTED / REVIEW(<actual-language>)
REST API + test UI
google-asr-africa serve # http://localhost:8000
GET /— browser UI (pick language, upload a clip, see the transcript)GET /health— liveness checkGET /languages— the verified catalog as JSONPOST /transcribe?language=<code>— send raw audio bytes, get JSON back
curl -X POST --data-binary @clip.flac -H 'Content-Type: audio/flac' \
'localhost:8000/transcribe?language=amharic'
Run it in Docker (no external deps beyond Python):
docker build -t google-asr-africa .
docker run -p 8000:8000 google-asr-africa
Verified languages
Amharic, Chichewa, Hausa, Igbo, Kinyarwanda, Kirundi, Ndebele, Oromo,
Sepedi, Sesotho, Setswana, Shona, Swahili, Swati, Tigrinya, Tsonga, Twi,
Venda, Xhosa, Yoruba, Zulu. Run list-languages for the full table.
License
MIT — covers this code only. Google's ASR service and its outputs are subject to Google's Terms of Service.
Part of AfriSpeech — open-source tools for African language technology.
Metadata
Release files for google-asr-africa 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| google_asr_africa-0.1.1.tar.gz | 16.2 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| google_asr_africa-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 32.9 kB
Release files / google_asr_africa-0.1.1.tar.gz
| Download URL | google_asr_africa-0.1.1.tar.gz |
|---|---|
| Size | 16.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7c8c69dbd93679176a49b9f0136410a7cf0f09fe6fdee1223a97476e655f60a2
|
|
BLAKE2b-256 checksum How to use checksums |
b75c8cb5c6518e7a0ee46078225b41c7fb1fb1c5e95cd36dcca5501703b128e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 22, 2026.
Transparency logRelease files / google_asr_africa-0.1.1-py3-none-any.whl
| Download URL | google_asr_africa-0.1.1-py3-none-any.whl |
|---|---|
| Size | 16.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c8ff10a0f6429acbdf63b016feb19ea4663bc6ba4b10ed63d2dbc6de42c4f449
|
|
BLAKE2b-256 checksum How to use checksums |
90ee5470235999b9414c998347cbaa6c0a48d9ec776b91449e3f15a4ae9a0002
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 22, 2026.
Transparency logSecurity for google-asr-africa 0.1.1
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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for google_asr_africa-0.1.1.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 Sep 22, 2026.
Transparency logA 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.