A Python-based desktop voice assistant that responds to spoken commands for tasks like web browsing, Wikipedia lookups, time queries, and sending emails.
- Wikipedia Search – Fetches and reads a brief summary aloud
- Web Navigation – Opens Google, YouTube, and Stack Overflow
- Time Query – Announces the current system time
- App Launch – Opens VS Code via voice command
- Email Sending – Composes and sends Gmail messages by voice
- Contextual Greeting – Greets based on time of day
pip install pyttsx3 SpeechRecognition wikipedia python-dotenvAlso requires PyAudio for microphone input. On Windows:
pip install pyaudio
-
Clone the repo
git clone https://github.com/your-username/personal-voice-assistant.git cd personal-voice-assistant -
Install dependencies
pip install pyttsx3 SpeechRecognition wikipedia python-dotenv
-
Configure environment variables
Create a.envfile in the project root & hide it via gitignore (I have uploaded mine with fake credentials):EMAIL_ADDRESS=your_email@gmail.com EMAIL_PASSWORD=your_app_password -
Update the VS Code path (optional)
EditcodePathin the script to match your local VS Code installation path. -
Run
python personal_voice_assistant.py
| Voice Command | Action |
|---|---|
search <topic> wikipedia |
Read Wikipedia summary |
open google / youtube / stackoverflow |
Open in browser |
what's the time |
Announce current time |
open code |
Launch VS Code |
email to nishant |
Send a voice-dictated email |