An open API service indexing awesome lists of open source software.

https://github.com/subuhana2303/vaanirakshak_offline-emergency-voice-assistant

VaaniRakshak is an offline voice assistant built for disaster scenarios, enabling hands-free emergency support without internet connectivity. It assists users in locating shelters, requesting help, and accessing life-saving information through voice interaction.
https://github.com/subuhana2303/vaanirakshak_offline-emergency-voice-assistant

audio-input json pyaudio pyttsx3 speech-recognition text-to-speech tkinter-gui vosk

Last synced: 3 months ago
JSON representation

VaaniRakshak is an offline voice assistant built for disaster scenarios, enabling hands-free emergency support without internet connectivity. It assists users in locating shelters, requesting help, and accessing life-saving information through voice interaction.

Awesome Lists containing this project

README

          

# πŸ›‘οΈ VaaniRakshak: Offline Emergency Voice Assistant

**VaaniRakshak** is an intelligent, offline voice assistant tailored for disaster and emergency response scenarios. Designed to operate **without internet connectivity**, it provides real-time assistance using voice commands, helping users locate shelters, access emergency services, and receive critical information β€” even in infrastructure-compromised environments.

---

## πŸ“Έ Output Preview

### πŸ–ΌοΈ VaaniRakshak GUI Screenshot

![Screenshot 2025-06-14 204059](https://github.com/user-attachments/assets/6b1cd43f-b0be-4c3b-8f9d-e7d399d8c4b6)

- πŸ”΄ Emergency-themed interface
- πŸŽ™οΈ Start/Stop voice control
- ✍️ Manual text input
- 🧭 Real-time updates and response messages

---

### 🎬 Demo Video

πŸ”— [Watch the video demo on Google Drive](https://drive.google.com/file/d/1_eOUWAw4IftcjcFsCsrCU14sKMkdXI07/view?usp=drive_link)

> βœ… *Watch the assistant recognize phrases like β€œI need help”, β€œmedical emergency”, and reply with shelter info, alerts, and voice feedback.*

---

## πŸ“Œ Features

- πŸŽ™οΈ **Offline Speech Recognition** using [Vosk](https://alphacephei.com/vosk/)
- πŸ—£οΈ **Text-to-Speech Synthesis** with `pyttsx3`
- πŸ–₯️ **User-Friendly GUI** powered by Tkinter
- πŸ“‘ **Emergency Response Engine** with shelter lookup and SMS alert simulation
- 🌍 **Location-aware guidance** (mocked for offline support)
- πŸ”§ Fully modular and configurable architecture

---

## 🧠 Use Case

> β€œIn disaster scenarios where internet access is disrupted, **VaaniRakshak** enables users to interact with emergency services and systems **hands-free, offline, and in real-time** β€” just by speaking.”

---

## πŸ—οΈ Architecture Overview

```
+---------------------+
| GUI Interface |
+----------+----------+
↓
+----------v----------+
| Voice Assistant | <-- Orchestrator
+----------+----------+
↓
+----------v----------+
| Speech Processor | <-- STT + TTS
+----------+----------+
↓
+----------v----------+
| Emergency Handler | <-- Logic + Lookup
+----------+----------+
↓
+----------v----------+
| Configuration Layer |
+---------------------+
```

---

## πŸ’» Technology Stack

| Layer | Tool/Library |
|------------------|-------------------------------|
| Programming Lang | Python 3.11 |
| Speech Recognition | Vosk (offline) |
| Text-to-Speech | pyttsx3 |
| Audio Input/Output| PyAudio |
| GUI | Tkinter (standard Python GUI) |
| Data Storage | JSON |

---

## πŸ“‚ Project Structure

```
VaaniRakshak/
β”œβ”€β”€ main.py # Entry point
β”œβ”€β”€ voice_assistant.py # Core controller
β”œβ”€β”€ speech_processor.py # STT + TTS
β”œβ”€β”€ emergency_handler.py # Logic/Response
β”œβ”€β”€ gui_interface.py # Tkinter GUI
β”œβ”€β”€ config.py # Configuration
β”œβ”€β”€ data/
β”‚ β”œβ”€β”€ emergency_phrases.json
β”‚ β”œβ”€β”€ shelters.json
β”‚ └── locations.json
β”œβ”€β”€ models/
β”‚ └── vosk-model-small-en-us-0.15/
└── README.md
```

---

## βš™οΈ Installation

### 1. Clone the Repository

```bash
git clone https://github.com/your-username/VaaniRakshak.git
cd VaaniRakshak
```

### 2. Install Dependencies

```bash
pip install vosk pyttsx3 pyaudio
```

> πŸ’‘ If `pyaudio` installation fails:
```bash
pip install pipwin
pipwin install pyaudio
```

---

### 3. Download Vosk Model

Download [`vosk-model-small-en-us-0.15`](https://alphacephei.com/vosk/models) and extract it here:

```
VaaniRakshak/
└── models/
└── vosk-model-small-en-us-0.15/
β”œβ”€β”€ am/
β”œβ”€β”€ conf/
β”œβ”€β”€ model.conf
└── ...
```

---

## ▢️ Run the Application

```bash
python main.py
```

---

## πŸ§ͺ Sample Voice Commands

- `"I need help"`
- `"Nearest shelter"`
- `"Medical emergency"`
- `"Fire alert"`
- `"Exit"`

---

## πŸ“¦ Deployment

### πŸ“ Build an Executable (.exe) – Windows

Install [PyInstaller](https://pyinstaller.org/):

```bash
pip install pyinstaller
```

Then build:

```bash
pyinstaller --noconfirm --onefile --windowed main.py
```

Place `models/` and `data/` folders alongside the `.exe`.

---

## 🧾 License

This project is licensed under the [MIT License](LICENSE).

---

## 🀝 Contributing

Pull requests are welcome! If you'd like to contribute improvements, localization, or accessibility features, please open an issue.

---

## πŸ“… Changelog

- **2025-06-14** – Initial release with full offline assistant functionality

---

## πŸ‘€ Author

**Subuhana B**
*Developer | Tech for Social Good | Voice AI Enthusiast*

**email:** subuhanabasheer41@gmail.com

**Github:** subuhana2303

---

> β€œVaaniRakshak speaks for you β€” when your voice is the only tool you have.”