Logo Lanfrica
  • Home
  • Atlas
  • Insights
  • Docs
  • Sign in

© 2026 Lanfrica. All rights reserved. All copyrights of the resources shown on the Lanfrica website belong to the original copyright holders, unless explicitly stated otherwise.

Shridhar7-8/swahili_asr_translation

Domain:

natural language processing

Record type:

software
Creator:
Shr
Host:
# Swahili ASR and Translation API This FastAPI application provides an endpoint for transcribing Swahili speech from .wav files and translating the transcription into English. ## Features - **Automatic Speech Recognition (ASR)** using speechbrain's wav2vec2 model. - **Translation** from Swahili to English using Hugging Face Transformers. - **FastAPI-based web service** with a `/docs` interface for testing. ## Installation To get started, clone the repository and set up your environment. ### 1. **Clone the repository**: ```bash git clone github.com cd swahili_asr_translation ``` ### 2. **Set up a virtual environment** ```bash python -m venv venv ``` ### 3. Activate the virtual environment - On macOS/Linux: ```bash source venv/bin/activate ``` - On Windows: ```bash venv\Scripts\activate ``` ### 4. Install the required dependencies ```bash pip install -r requirements.txt ``` ## Usage ### Running the API server: Run the following command to start the FastAPI application: ```bash uvicorn swahili_asr_translation:app --host 0.0.0.0 --port 8021 --reload ``` Once the server is running, you can access the API documentation at: ```bash localhost ``` ## API Endpoints ### `POST /transcribe-and-translate/` Uploads a `.wav` file, transcribes it to Swahili text, and translates it into English. #### Request: - **File**: A `.wav` audio file. #### Response (JSON): ```json { "audio_file": "example.wav", "transcription": "Hii ni sauti ya majaribio", "translation": "This is a test audio" } ``` ## Deployment For production environments, it is recommended to run the application with multiple workers for better scalability. If you're running the app from a script, you can use the following setup in your `swahili_api.py`: ```python if __name__ == "__main__": import uvicorn uvicorn.run("swahili_asr_translation:app", host="0.0.0.0", port=8021, workers=4) ```

Visit

github.com

Tasks

automatic speech recognitionmachine translationspeech processing

Languages

Swahili

Similar

ፒደሊዮጌ መኣኑን፡ ቲሚርቲ 8 Fideliyoge Me'enun Timirti 8 Me'en Primer 88 Caleme 0141-8 Caleme Documentation of Bedik8 Mandokacal “Yómeme” 0141-8 Mandokacal “Yómeme” Documentation of BedikTonal case 8(9) Table 8evie-8/afrivoices

ፒደሊዮጌ መኣኑን፡ ቲሚርቲ 8 Fideliyoge Me'enun Timirti 8 Me'en Primer 8

https://www.sil.org/resources/archives/57690

8 Caleme 0141-8 Caleme Documentation of Bedik

Gamond traditional song: Tell me if the custom will be… Language_Name: Bedik Language_Region:

8 Mandokacal “Yómeme” 0141-8 Mandokacal “Yómeme” Documentation of Bedik

It's about a young man not being loved by a girl. Ashamed, he wanted to be transformed into a bird.

Tonal case 8

A male speaker from Laghangareri producing clauses and phrases for the purpose of analyzing tonal ca

(9) Table 8

Morphologie et tonologie de l'impératif du verbe koalib

evie-8/afrivoices

This repository contains curated subsets of the Digital Umuganda / AfriVoices dataset for the Shona,