This is my own voice assistant built in Python. It can recognize specific voice commands and respond accordingly. The assistant provides basic functionalities like telling its name, age, current time, telling jokes, and opening YouTube and Gmail or anything i want.
- Voice Recognition: The assistant can recognize voice commands using the
speech_recognition
library. - Text-to-Speech: It can respond to user queries using the
pyttsx3
library for text-to-speech conversion. - Basic Conversational Responses: Provides pre-defined responses to common questions.
- Time Display: Shows the current time when asked.
- Web Browsing: Opens YouTube and Gmail based on user commands.
- Jokes: Tells jokes when asked.
- Exit Command: Allows the user to exit the assistant.
- Python 3.x installed
- Required libraries and dependencies (
pyttsx3
,speech_recognition
,datetime
,pyjokes
,os
,time
)
- Clone the repository:
git clone https://github.com/yourusername/voice-assistant.git
- Install the required dependencies:
pip install pyttsx3 speechrecognition pyjokes
- Open a terminal or command prompt.
- Navigate to the project directory:
cd voice-assistant
- Run the main Python script:
python main.py
- Say "Hello" to activate the assistant and begin interacting with it.
- You can ask the assistant for its name, age, current time, jokes, or instruct it to open YouTube or Gmail.
- To exit the assistant, say "exit."
You: Hello
Assistant: (Listening...)
You: What's your name?
Assistant: My name is vision
You: Hello
Assistant: (Listening...)
You: Tell me a joke
Assistant: Why don't scientists trust atoms? Because they make up everything!
You: Hello
Assistant: (Listening...)
You: What's the time?
Assistant: 12:30 PM
You: Hello
Assistant: (Listening...)
You: Open YouTube
Assistant: (Opens YouTube in the default web browser)
You: Hello
Assistant: (Listening...)
You: Open Gmail
Assistant: (Opens Gmail in the default web browser)
You: Hello
Assistant: (Listening...)
You: Exit
Assistant: Thank you
Contributions to this voice assistant are welcome! If you have any ideas for new features, improvements, or bug fixes, feel free to open a pull request.
- Thanks to the creators of
pyttsx3
,speech_recognition
,datetime
,pyjokes
, and other libraries used in this project. - Special thanks to the Python community for their valuable resources and support.
For any inquiries or feedback, please contact [[email protected]].