A simple Python voice assistant that listens for a wake word and performs basic commands like opening websites.
Wake word detection: jarvis, hey jarvis, hello jarvis Speech recognition using Google Speech Recognition Text-to-speech responses using pyttsx3 Voice commands to open Google, YouTube, Instagram, and Facebook
main.py requirements.txt README.md
- Create a virtual environment (optional) python -m venv venv
Activate it:
venv\Scripts\activate
source venv/bin/activate
- Install dependencies pip install -r requirements.txt
Example requirements.txt:
SpeechRecognition pyttsx3 pyaudio
- Fix PyAudio installation (Windows) pip install pipwin pipwin install pyaudio
Run the assistant:
python main.py
Say the wake word “jarvis”, then speak a command.
open google -> Opens google.com open youtube -> Opens youtube.com open instagram -> Opens instagram.com open facebook -> Opens facebook.com
Microphone not detected
Ensure your system has a working input device and permissions enabled.
Use pipwin on Windows, or install PortAudio on macOS/Linux.
Reduce background noise or increase microphone sensitivity.
MIT License