Welcome to the Voice-Controlled Python Assistant repository! This Python program serves as a versatile voice assistant, utilizing various modules to execute tasks based on user voice commands.
-
Text-to-Speech: The program utilizes the
pyttsx3library for text-to-speech functionality, allowing the assistant to respond audibly. -
Voice Recognition: The
speech_recognitionmodule captures user voice input and converts it into text for processing. -
Multifunctional Commands: The assistant can perform the following tasks:
-
Wikipedia Search:
- Trigger: "Wikipedia"
- Example: say : " Hello Wikipedia Python "
-
Music Playback:
- Triggers: "play music" or "play song"
- Example: say : " Hello Play music "
-
Time Query:
- Trigger: "time"
- Example: say : " Hello What's the time? "
-
Exit Program Command:
- Trigger: "exit"
- Example: say : " Hello Exit "
-
Close An Opened Application:
- Trigger: "close"
- Example: say : " Hello Close app Notepad "
-
Web Search or Play:
- Triggers: "search" or "play"
- Example: say : " Hello Search OpenAI" or "Play jazz music "
-
System Shutdown:
- Trigger: "shutdown system"
- Example: say : " Hello Shutdown system "
-
System Restart:
- Trigger: "restart system"
- Example: say : " Hello Restart system "
-
System Hibernate or Sleep:
- Triggers: "hibernate system" or "sleep"
- Example: say : " Hello Hibernate system" or "Sleep "
-
System Log Off:
- Triggers: "log off system" or "sign out"
- Example: say : " Hello Log off system" or "Sign out "
-
Greeting:
- Trigger: "how are you"
- Example: say : " Hello How are you? "
-
Application Opening:
- Trigger: "open + + app"
- Example: say : " Hello Open Notepad App "
-
Website opening:
- Trigger: "Open + <website name eg "google"> + .com"
- Example: say : " Hello Open www.example.com "
-
Search Local Files:
- Trigger: "Open"
- Example: say : " Hello "
-
-
Continuous Interaction: The program runs continuously, listening for user commands and responding dynamically.
Before running the program, ensure that the following modules are installed:
- AppOpener
- pyttsx3
- speech_recognition
- wikipedia
- webbrowser
-
Clone the repository:
gh repo clone FALLEN-01/Voice-Assistant
-
Install required modules:
pip install AppOpener
pip install pyttsx3
pip install SpeechRecognition
pip install wikipedia
pip install webbrowser
-
Run the program:
python voice_assistant.py
Feel free to customize the assistant according to your preferences or extend its functionalities. The hello function in the code can be expanded to include new commands or actions.
information, examples, or usage scenarios based on your specific implementation.
If you feel hello isn't the word for you can change it in the code :
if 'hello' in query:Replace the "Hello" with the word you like
This project is licensed under the MIT License - see the LICENSE file for details.