The kinyaWhisper is Kinyarwanda ASR
# Kinyarwanda Voice Assistant π€
An intelligent voice assistant for Kinyarwanda language interaction, developed as part of the Intelligent Robotics course.
π Key Features
ποΈ Kinyarwanda Speech Recognition: Built on KinyaWhisper, fine-tuned for 16kHz audio.
π§ Smart Understanding: Uses fuzzy logic for flexible and context-aware question matching.
π’ Natural Kinyarwanda Responses: Speech output generated via Kinyarwanda TTS.
π Clean Audio Input: Enhanced noise reduction ensures clearer speech detection.
ποΈ Accurate Detection: Employs Voice Activity Detection (VAD) for precise speech segmentation.
π Repetition Filtering: Eliminates redundant transcriptions for smoother results.
π Insightful Analytics: Visualize matched queries and system behavior.
π User-Friendly Interface: Seamless interaction through a web app powered by Gradio.
π οΈ Technology Stack
AI Backbone: Hugging Face Transformers
Audio Handling: Librosa + SoundFile
Language Processing: FuzzyWuzzy & Python-Levenshtein for similarity scoring
Frontend Interface: Gradio
Performance Enhancements: WebRTC-based VAD & NoiseReduce for real-time optimization
## Installation π»
### Prerequisites
- Python 3.12
- FFmpeg (audio processing):
```bash
# Ubuntu/Debian
sudo apt-get install ffmpeg
# macOS
brew install ffmpeg
# Windows (via chocolatey)
choco install ffmpeg
```
## Quick Start π
- Clone repository
```bash
git clone
github.com
cd KinyarwandaVoiceAssistant
```# Create a virtual environment
python -m venv .venv
# Activate the virtual environment
# For Linux/macOS:
source .venv/bin/activate
# For Windows:
.venv\Scripts\activate
pip install -r requirements.txt
{
"qa_pairs": [
{
"question": "Mwaramuce neza?",
"answer": "Mwaramutse! Amakuru yanyu?"
}
],
"default_response": "Vugurura ikibazo."
}
## Example Interactions π£οΈ
| Raw Transcription | Matched Question | System Response |
|-------------------|-----------|--- β¦