In todayβs fast-paced digital world, users want hands-free, intelligent assistants that can understand natural language and perform daily tasks efficientlyβsimilar to Alexa, Google Assistant, or Siri.
This project builds an Advanced Voice Assistant capable of:
- Understanding spoken language
- Interpreting user intent using NLP
- Performing real-world tasks autonomously
- Integrating with third-party APIs for extended functionality
This assistant is designed as a modular, scalable system, not just a basic speech-to-text script.
A simple voice assistant built with Python that can:
- Open applications
- Search Wikipedia
- Fetch weather information
- Tell date and time
- Perform Google searches
- Exit gracefully with Hinglish stop messages
- π€ Speech Recognition - Understands your voice commands using
speech_recognition. - π Text-to-Speech β Speaks back responses with
pyttsx3. - π¦οΈ Weather Updates β Get real-time weather for any city.
- π Date & Time β Ask for todayβs date or current time.
- π Google Search β Search the web instantly.
- π Wikipedia Search β Fetch summaries from Wikipedia.
- π Graceful Exit β Hinglish farewell messages when you say exit/quit/stop.
User (Voice)
β
Microphone Input
β
Speech Recognition Module
β
Command Router
β
Task Execution Layer
βββ Date and time
βββ Open applications
βββ Weather API
βββ Wikipedia service
βββ Google service
β
Text-to-Speech Output
β
User (Voice Response)
- Python 3.9+
speech_recognitionpyttsx3wikipediarequestswebbrowserosplatform
Run the assistant:
python app.py
Say commands like:
- "Search for Rohit Sharma"
- "Open Notepad"
- "What's the weather in Mumbai?"
- "Tell me the time"
- "Stop"
Say "exit", "quit", or "stop" to end the assistant.
Youβll hear a friendly Hinglish goodbye like:
| "Assistant band ho raha hai, phir milte hain!"
voice-assistant/
βββ backend/
β βββ app.py # Entry point
β βββ config.py # Configuration & API keys
β βββ speech/
β β βββ recognizer.py # Speech-to-text
β β βββ speaker.py # Text-to-speech
β βββ services/
β β βββ date_time.py # For Date and Time
β β βββ open_application.py # Opening applications and websites
β β βββ weather_ser.py # Weather API
β β βββ wikipedia_ser.py # Fetch summaries from Wikipedia
β βββ router/
β βββ command_router.py # Routes intents
βββ requirements.txt
βββ .env
βββ README.md
Developed with β€οΈ by Vikas Ajay Vishwakarma
Feel free to fork, contribute, or suggest new features!