Oreo is a Python-based virtual personal assistant designed to perform various tasks and engage in conversations with users. This project showcases my proficiency in the Python programming language. With Oreo, you can easily control your computer, interact with popular websites, get the current time, and engage in conversations.
Oreo utilizes the speech_recognition
library to recognize and interpret spoken commands from the user. It can understand
and respond to various voice inputs.
You can instruct Oreo to open various websites such as YouTube, Google, Instagram, Wikipedia, GitHub, Stack Overflow, Amazon, and LinkedIn. Just say "open [website name]" and watch Oreo seamlessly open your preferred site in your default web browser.
Oreo can launch the Windows File Explorer to a specific directory of your choice. Simply mention "file explorer" in your command,
and Oreo will open the specified directory using the subprocess
module.
Ask Oreo about the current time, and it will promptly respond with the accurate time using the datetime
module.
Oreo knows the appropriate greetings based on the time of day. It will greet you with a tailored message depending on whether it's morning, afternoon, or night.
Oreo uses the OpenAI API to engage in conversations. Feel free to chat with Oreo on various topics, and it will provide relevant responses based on the provided prompts.
-
Ensure you have Python installed on your system.
-
Install the required libraries using the following command:
pip install speech_recognition pyttsx3 openai
-
Set up your OpenAI API key by placing it in the
APIKEY
variable within themyapi.py
file. -
Run the
main.py
script to start interacting with Oreo. You can speak your commands, and Oreo will respond accordingly.
- Open websites: Say "open [website name]" to open various websites.
- Access File Explorer: Mention "file explorer" to open the Windows File Explorer.
- Check the time: Ask "what's the time" or "what is the time" to get the current time.
- Greetings: Oreo will greet you with appropriate messages based on the time of day.
- Conversations: Engage in conversations with Oreo by asking questions or providing prompts.
This project is brought to you by xq_ankit. Special thanks to the developers of the speech_recognition
, pyttsx3
, and
OpenAI libraries.
Contributions to this project are welcome. Feel free to fork the repository, make improvements, and submit pull requests.
For any inquiries or feedback, please contact [email protected].
Note: This project is for demonstration purposes and may require additional setup and customization to suit your environment and preferences. Make sure to review and modify the code as needed before using it in a production environment.