This is a simple voice assistant program built with Python. It can perform various tasks such as searching Wikipedia, opening websites, playing music, telling the time, sending emails, and more.
- Text-to-Speech: Uses
pyttsx3for converting text to speech. - Speech Recognition: Uses
SpeechRecognitionfor recognizing voice commands. - Wikipedia Search: Searches Wikipedia and returns summaries.
- Open Websites: Opens various websites like YouTube, Google, Stack Overflow, etc.
- Play Music: Plays music from a specified directory.
- Tell Time: Tells the current time.
- Send Email: Sends an email using SMTP.
- Weather and News: Opens websites to check weather and news.
- Clone the repository:
git clone https://github.com/sandeshPatel06/personalJarvisAi.git
cd voice-assistant- Install the required packages:
pip install -r requirements.txt- Run the
main.pyfile:
python main.py- The assistant will start listening for your commands. You can try commands like:
- "open YouTube"
- "search Wikipedia for Python"
- "play music"
- "tell me the time"
- "send an email"
- "check the weather"
- To send emails, you need to enable low-security apps in your Gmail account and replace
your-email@gmail.comandyour-passwordin thesend_emailfunction with your email and password. - Change the
music_dirvariable to your music directory. - Change the
code_pathvariable to the path of your code editor.
- Python 3.x
pyttsx3SpeechRecognitionwikipedia-api
This project is licensed under the MIT License.