Logo Lanfrica

Viateur-akimana/KinyaVoice

Domain:

natural language processing

Record type:

software
Creator:
Via
Host:
A lightweight Kinyarwanda speech assistant that transcribes spoken queries, processes natural language intents, and responds with synthesized speechβ€”bridging technology with Rwanda's primary language. # Kinyarwanda Voice Assistant A mini voice assistant for Kinyarwanda language, built for the Intelligent Robotics course (April 2025). This project implements a complete voice interaction pipeline with Automatic Speech Recognition (ASR), Natural Language Processing (NLP), and Text-to-Speech (TTS) capabilities. ## πŸš€ Features - **πŸ—£οΈ Speech Recognition**: Transcribes Kinyarwanda speech to text using `benax-rw/KinyaWhisper` (ASR) - **πŸ€– NLP Processing**: Understands queries using intent-based pattern matching with fuzzy matching capabilities - **πŸ”Š Speech Synthesis**: Generates natural-sounding Kinyarwanda speech using custom TTS models - **🌐 Web Interface**: User-friendly Gradio interface for interactive conversations - **πŸ’» CLI Support**: Command-line interface for batch processing of audio files ## πŸ“‚ Project Structure ``` kinyarwanda-voice-assistant/ β”œβ”€β”€ gradio_app.py # Main Gradio web interface β”œβ”€β”€ main.py # Command-line application β”œβ”€β”€ asr/ β”‚ └── transcribe.py # Speech recognition module β”œβ”€β”€ nlp/ β”‚ β”œβ”€β”€ qa_engine.py # Question answering system β”‚ └── intents.json # Intent patterns and responses β”œβ”€β”€ tts/ β”‚ └── speech_synth.py # Text-to-speech engine β”œβ”€β”€ Inference/ β”‚ └── kinyatts/ # TTS model and utilities β”œβ”€β”€ test_audio/ # Sample audio files └── transcription_output/ # Generated audio outputs ``` ## Installation 1. Clone the repository: ```bash git clone github.com cd kinyarwanda-voice-assistant ``` 2. Create and activate a virtual environment: ```bash python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate ``` 3. Install dependencies: ```bash pip install -r requirements.txt ``` 4. Set up the TTS model: - Download the TTS model file and place it at the correct location - Verify the paths in `tts/speech_synth.py` ## Usage You can use the system from the command line: ```bash python main.py ` …