Logo Lanfrica

Naome12/Kinyarwanda_Voice-Assistant

Domain:

natural language processing

Record type:

softwareproject
Creator:
Nao
Host:
Kinyarwanda voice assistant # πŸ—£οΈ Kinyarwanda Voice Assistant (ASR + TTS) This project is a simple voice assistant that listens to `.wav` audio recordings in **Kinyarwanda**, transcribes them using a **Whisper ASR model**, finds a matching response, and replies using a **VITS text-to-speech model**. --- ## πŸ”§ Features - πŸŽ™οΈ Transcribes spoken Kinyarwanda using `mbazaNLP/Whisper-Small-Kinyarwanda` - πŸ—£οΈ Responds with natural Kinyarwanda speech using `facebook/mms-tts-kin` - βœ… Matches predefined questions and answers - πŸ“ Saves and plays generated responses --- ## πŸ“¦ Installation ### 1. Clone the Repository ```bash git clone github.com cd Kinyarwanda_Voice-Assistant ## πŸ“¦ 2. Install Dependencies Make sure you are using **Python 3.8+**, then install the required packages: ```bash pip install torch torchaudio transformers soundfile ``` --- ## πŸ–₯️ FFmpeg Setup (Windows Only) To enable audio playback from the script, FFmpeg must be installed. ### πŸ”½ Steps to Install: 1. Download FFmpeg from gyan.dev 2. Extract the ZIP file 3. Locate the `bin` folder inside the extracted directory ### βš™οΈ Choose One of the Following: **Option A β€” Add to System Environment Variables:** - Open "Environment Variables" - Add the full path to `ffmpeg\bin` to your system `PATH` **Option B β€” Modify the Script Directly:** In your Python script (`main.py`), add: ```python os.environ["PATH"] += os.pathsep + r"C:\path\to\ffmpeg\bin" ``` --- ## 🧠 Pretrained Models These models are automatically downloaded from Hugging Face when you run the script for the first time: | Task | Model Name | |---------------------|----------------------------------------| | ASR (Transcription) | `mbazaNLP/Whisper-Small-Kinyarwanda` | | TTS (Speech) | `facebook/mms-tts-kin` | --- ## πŸ“‚ Project Structure ```plaintext kinyarwanda-voice-assistant/ β”‚ β”œβ”€β”€ data/ β”‚ β”œβ”€β”€ audio/ # Input .wav audio fi …