A simple voice-controlled assistant built in Python that performs system tasks, opens websites, and searches Google using voice commands.
🔗 GitHub Repository: https://github.com/Anujlohade/Offline-ai-assistance-using-python
- 🎤 Voice command input using microphone
- 🔊 Text-to-speech responses
- 🌐 Open any website (e.g., "open youtube")
- 🔍 Google search for any query
- 🧠 Automatically searches questions (what, who, how, etc.)
- ⌨️ Type text using voice
- 🖱️ Mouse control (click, scroll up/down)
- 🔊 Volume control (up, down, mute)
- ⏰ Get current time
- 📅 Get current date
- 🎵 Play music from local system
- 🔌 Shutdown and restart system
- 🌐 Open ChatGPT in browser
- ❌ Exit assistant with voice command
- Python
- speech_recognition
- pyttsx3
- pyautogui
- webbrowser
- subprocess
- datetime
- urllib
git clone https://github.com/Anujlohade/Offline-ai-assistance-using-python.git
cd Offline-ai-assistance-using-pythonpip install SpeechRecognition pyttsx3 pyautogui pyaudioIf
pyaudiofails:
pip install pipwin
pipwin install pyaudiopython offlineAIassistance.py- "open google"
- "open youtube"
- "search python programming"
- "what is artificial intelligence"
- "type hello world"
- "click"
- "scroll down"
- "volume up"
- "mute"
- "play music"
- "what is the time"
- "what is the date"
- "shutdown"
- "restart"
- "open chat gpt"
- "exit"
- Listens to your voice
- Converts speech to text using Google Speech Recognition
- Matches command with predefined conditions
- Executes the task (browser, system, typing, etc.)
- Responds using voice
- Requires internet for speech recognition
- Application opening depends on system PATH
- Music directory is fixed (
C:\Users\hinde\Music) - No wake word (manual start required)
Anuj Lohade Built using Python with trial and error in 3 days
If you found this useful:
- Star ⭐ the repo
- Fork 🍴 it
- Improve and contribute