ποΈ Ask questions in Kinyarwanda using your voice and get instant AI-powered responses β spoken back to you and displayed as text! π·πΌ Powered by speech recognition, natural language understanding, and text-to-speech. Speak. Hear. See.
# π€ Kinyarwanda Voice Assistant
An intelligent voice assistant that understands and speaks **Kinyarwanda**, developed as part of the **Intelligent Robotics** course. It combines advanced speech recognition, contextual understanding, and natural language response generation to enable real-time human-computer interaction in Kinyarwanda.
---
## π₯ Interface Demo
A web-based interactive demo is included using **Gradio**. Launch the app locally and interact with it through your browser.
---
## π Features
- ποΈ **Kinyarwanda ASR** powered by `KinyaWhisper` (optimized for 16kHz audio)
- π§ **Contextual Understanding** using fuzzy logic matching
- π’ **Natural Language Responses** with Kinyarwanda Text-to-Speech (TTS)
- π **Noise Reduction** with advanced audio cleaning
- ποΈ **Voice Activity Detection (VAD)** for precise speech segmentation
- π **Repetition Filters** for clean, intelligible transcription
- π **Conversation Analytics** with question matching insights
- π **Web Interface** via Gradio for user-friendly interaction
---
## π οΈ Tech Stack
| π§© Layer | π οΈ Tools Used |
|---------------------|--------------------------------------|
| Core AI | Hugging Face Transformers |
| Audio Processing | Librosa, Soundfile, WebRTC VAD |
| NLP Matching | FuzzyWuzzy, Python-Levenshtein |
| Voice Interface | Gradio |
| Optimization | Noisereduce, FFmpeg |
---
## π» Installation
### β
Prerequisites
- Python 3.12
- FFmpeg
Install FFmpeg:
```bash
# Ubuntu/Debian
sudo apt-get install ffmpeg
# macOS
brew install ffmpeg
# Windows (via Chocolatey)
choco install ffmpeg
```
---
### π Quick Start
```bash
# Clone the repository
git clone
github.com
cd RwandaVoiceAI--main/RwandaVoiceAI--main
# Set up virtual environment
python -m venv .venv
# Activate virtual environment
.\.venv\Scripts\activate β¦