A simple voice-controlled personal assistant built in Python. It listens to your voice, talks back, tells jokes, searches Wikipedia, opens websites, and more.
- 🎤 Speech recognition (listen to your voice)
- 🔊 Text-to-speech (assistant talks back)
- 🌐 Open websites (YouTube, Google, etc.)
- 📖 Wikipedia search
- 😂 Tell jokes
- 🖥️ System commands (open apps, etc.)
Make sure you have Python 3.8+ installed.
Install dependencies with:
pip install -r requirements.txt
speechrecognition
pyttsx3
wikipedia
requests
pyjokes
pyaudio
-
Clone the repo:
git clone https://github.com/your-username/personal-assistant-python.git cd personal-assistant-python
-
Run the assistant:
python assistant.py
-
Speak commands like:
- “Hello”
- “Open YouTube”
- “Search Wikipedia for Python”
- “Tell me a joke”
- Microphone access must be enabled on your system.
- If you have multiple microphones, edit the
device_index
in the code. - On Windows, you may need to install PyAudio wheel manually if
pip install pyaudio
fails.