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.

ChristianRukundo/Kinyarwanda-Voice-Assistant

Domain:

natural language processing

Record type:

software
Creator:
Chr
Host:
# πŸ‡·πŸ‡Ό Mini Kinyarwanda Voice Assistant (using KinyaWhisper) πŸ€–οΈπŸŽ™οΈ Murakaza neza! Welcome to the Mini Kinyarwanda Voice Assistant project. This application demonstrates a simple voice interaction system for the Kinyarwanda language, simulating how a robot might hear, understand, and respond. This project fulfills the assignment requirements by: - πŸ‘‚ **Hearing:** Using the `benax-rw/KinyaWhisper` model for Kinyarwanda Speech-to-Text (ASR). - 🧠 **Understanding:** Matching the transcribed text to predefined questions using basic dictionary lookup (NLP). - πŸ—£οΈ **Speaking:** Generating spoken Kinyarwanda answers using Google Text-to-Speech (TTS). ## 🎯 Project Goal To build a functional prototype showcasing core voice AI components (ASR, NLP, TTS) for Kinyarwanda, suitable for demonstrating basic voice interaction in applications like robotics. ## ✨ How It Works: Code Breakdown The `src/app.py` script orchestrates the entire process: 1. **Initialization & Model Loading:** - Imports necessary libraries (`gradio`, `gtts`, `torch`, `torchaudio`, `transformers`). - Defines constants like the Hugging Face `MODEL_ID` (`benax-rw/KinyaWhisper`). - Loads the `WhisperProcessor` and `WhisperForConditionalGeneration` model from Hugging Face, automatically downloading them if needed. It detects if a GPU (`cuda`) is available for faster processing. ```python # Loads processor and model processor = WhisperProcessor.from_pretrained(MODEL_ID) model = WhisperForConditionalGeneration.from_pretrained(MODEL_ID).to(device) model.eval() # Sets model to evaluation mode ``` 2. **πŸ‘‚ Speech Recognition (ASR - `transcribe_kinyarwanda` function):** - Takes the audio file path as input. - Loads the audio using `torchaudio.load()`. - Converts stereo audio to mono. - Resamples the audio to the required `TARGET_ASR_SAMPLE_RATE` (16000 Hz) if necessary. - Uses the `processor` to prepare the audio features for the model. - Feeds the features into the `model.generate()` method to get predicted token …

Visit

github.com

Tasks

automatic speech recognitiontext to speechspeech processing

Languages

Kinyarwanda

Similar

Inezariane/kinyarwanda-voice-assistantyvesHakizimana/kinyarwanda-voice-assistantPaccyC/kinyarwanda-voice-assistantBYUMVUHOREAimable/kinyarwanda-voice-assistantjusish/kinyarwanda-voice-assistantHenriTresor/Kinyarwanda-Voice-Assistant

Inezariane/kinyarwanda-voice-assistant

A kinyarwanda Voice Assistant that accepts user inputs in Kinyarwanda and responds in the same langu

yvesHakizimana/kinyarwanda-voice-assistant

an intermediate basic kinyarwanda voice assistant powered NLP which can hear and answer questions by

PaccyC/kinyarwanda-voice-assistant

Here’s a well-structured `README.md` for your Kinyarwanda Voice Assistant project, using appropriate

BYUMVUHOREAimable/kinyarwanda-voice-assistant

Kinya is a cutting-edge voice assistant designed to understand and respond naturally in Kinyarwanda.

jusish/kinyarwanda-voice-assistant

An intelligent voice assistant for Kinyarwanda language interaction, developed as part of the Intell

HenriTresor/Kinyarwanda-Voice-Assistant

### Kinyarwanda Voice Assistant