This is a simple virtual assistant program written in Python. It can perform various tasks such as searching on Wikipedia, opening YouTube, and providing weather information.
- Python 3.x
- Required Python packages: pyttsx3, speech_recognition, wikipedia, requests
-
Clone the repository or download the source code files.
-
Install the required Python packages using pip:
-
Run the
karen_voice_bot.py
script: -
The virtual assistant will greet you and listen for your commands.
-
You can interact with the assistant by speaking commands or queries. For example, you can say "Open Wikipedia" to search for a topic on Wikipedia, or "What's the weather in New York?" to get the weather information for a specific location.
-
The assistant will respond to your commands and perform the requested tasks.
To use the weather feature, you need to provide an API key from OpenWeatherMap. Set your API key as an environment variable named API_KEY
before running the script. For example, on Windows, you can use the command:
You can customize and extend the functionality of the virtual assistant by modifying the execute_command
method in the VirtualAssistant
class. You can add new commands, integrate additional APIs, or enhance the existing features according to your needs.
Contributions are welcome! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.