Skip to main content

Automatic Speech Recognition (ASR) SDK for Nigerian languages Yoruba, Igbo, Hausa, and Nigerian-accented English using CTranslate2-converted Whisper models

Project description

NaijaLingo ASR SDK

ASR SDK for Nigerian languages using CTranslate2-converted Whisper models.

Install

pip install naijalingo-asr

Quickstart

from naijalingo_asr import transcribe

text = transcribe("/path/to/audio.wav", language="yo")
print(text)

text = transcribe("/path/to/igbo_audio.wav", language="ig")
print(text)

CLI

naijalingo-asr --audio_path /path/to/audio.wav --language yo

CLI options

  • --language (required): Language code (yo, ig, ha, en).
  • --device (optional): auto (default), cpu, or cuda.
  • --compute-type (optional): auto (default), float16, int8, int8_float16.
  • --beam-size (optional): Beam search size (default: 5).
  • --no-vad (optional flag): Disable VAD filter (enabled by default).
  • --temperature (optional): Sampling temperature (default: 0.0).
  • --initial-prompt (optional): Context prompt to prime decoding.
  • --log-level (optional): DEBUG, INFO, WARNING (default), ERROR.

Examples:

# GPU with float16
naijalingo-asr --audio_path /path/to/audio.wav --language yo \
  --device cuda --compute-type float16 --beam-size 5 --log-level INFO

# CPU with int8
naijalingo-asr --audio_path /path/to/audio.wav --language ig \
  --device cpu --compute-type int8 --no-vad

# With an initial prompt context
naijalingo-asr --audio_path /path/to/audio.wav --language ha \
  --initial-prompt "Medical conversation in Hausa"

Docker

Docker support has been removed. Use the CLI or Python API instead.

Supported languages

  • yo: Yoruba
  • ig: Igbo
  • ha: Hausa
  • en: Nigerian-accented English

Notes

  • Uses faster-whisper (CTranslate2 backend)
  • Accepts file paths (mp3/wav/m4a/etc.) via librosa, or a numpy array (mono 16k)
  • Task is transcription only; set task="transcribe" and the language code.

Logging

Set via CLI --log-level INFO or env NAIJALINGO_ASR_LOG=INFO.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

naijalingo_asr-0.1.0.post1.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

naijalingo_asr-0.1.0.post1-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file naijalingo_asr-0.1.0.post1.tar.gz.

File metadata

  • Download URL: naijalingo_asr-0.1.0.post1.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for naijalingo_asr-0.1.0.post1.tar.gz
Algorithm Hash digest
SHA256 54fcc8b2b6e3e77cbdc54e469e0be57f6dec49bf898e32a8401e4cb426129e9e
MD5 9b04909e44d822c6d04b393e88771538
BLAKE2b-256 62db6d38cf31b3f707862866d0dc6ce7ccbd89944189bc1a603dd59934245806

See more details on using hashes here.

File details

Details for the file naijalingo_asr-0.1.0.post1-py3-none-any.whl.

File metadata

File hashes

Hashes for naijalingo_asr-0.1.0.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 69424727ff892b7917f662e0a63f4bb270c4a55fd75ece9be4fe3963fc5462d9
MD5 cb022819685b2696060680fd36dd4eb4
BLAKE2b-256 0b08cc8c0867d92a1159b9b808855b92d01233872125cecef1cf3f6d43a5f95c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page