This is a Python-based AI assistant with voice recognition capabilities. The assistant can perform a variety of tasks, including answering questions, playing songs on YouTube, providing weather updates, and fetching and reading out the latest news headlines.
- Voice recognition for user interactions.
- Responds to voice commands for various tasks.
- Fetches weather information for a specific city.
- Retrieves and reads out the latest news headlines.
- Opens websites, plays songs on YouTube, and performs various web-based tasks.
- Sends emails (requires email account setup and authorization).
- Basic chatbot capabilities for general conversations.
To use the AI assistant, follow these steps:
-
Install the required Python libraries by running:
-
Replace
'YOUR_API_KEY'in the code with your actual API keys for the weather and news APIs. -
Run the script using Python:
-
Interact with the assistant using voice commands and queries.
- Python 3.x
- API keys for weather and news services (replace
'YOUR_API_KEY'with your actual keys).
pyttsx3for text-to-speech conversion.speech_recognitionfor voice recognition.wikipediafor querying Wikipedia.webbrowserfor web-related tasks.requestsfor making HTTP requests.beautifulsoup4 (bs4)for web scraping.smtplibfor sending emails.python_weatherfor weather information.asynciofor asynchronous operations.seleniumfor web automation.
Feel free to customize and extend the AI assistant by adding more voice commands and features, such as home automation, reminders, personalized recommendations, and more.
This project is open-source and available under the MIT License. See the LICENSE file for details.
[Musa Tahawar]
- The code is based on various libraries and APIs, and we thank their respective developers and contributors for their work.