Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎙️ Offline AI Assistance (Python)

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


🚀 Features

  • 🎤 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

🛠️ Technologies Used

  • Python
  • speech_recognition
  • pyttsx3
  • pyautogui
  • webbrowser
  • subprocess
  • datetime
  • urllib

📦 Installation

1. Clone the Repository

git clone https://github.com/Anujlohade/Offline-ai-assistance-using-python.git
cd Offline-ai-assistance-using-python

2. Install Required Libraries

pip install SpeechRecognition pyttsx3 pyautogui pyaudio

If pyaudio fails:

pip install pipwin
pipwin install pyaudio

▶️ Run the Project

python offlineAIassistance.py

🧠 Example Commands

  • "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"

⚙️ How It Works

  1. Listens to your voice
  2. Converts speech to text using Google Speech Recognition
  3. Matches command with predefined conditions
  4. Executes the task (browser, system, typing, etc.)
  5. Responds using voice

⚠️ Limitations

  • 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)

👨‍💻 Author

Anuj Lohade Built using Python with trial and error in 3 days


⭐ Support

If you found this useful:

  • Star ⭐ the repo
  • Fork 🍴 it
  • Improve and contribute

About

this is a offline ai assistance made using python and some libraries it gets in the cammand from user like "open google" and redirects to google.com

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages