This is a Python-based AI Virtual Assistant that performs tasks such as:
- Recognizing voice commands
- Telling the current time
- Fetching information from Wikipedia
- Voice Recognition: Uses
speech_recognitionto listen to user commands. - Text-to-Speech: Uses
pyttsx3to respond with a human-like voice. - Time Functionality: Can tell the current time.
- Wikipedia Search: Fetches information based on user queries.
Ensure you have Python installed. You can download it from python.org.
Run the following command to install required libraries:
pip install pyttsx3 speechrecognition pyaudio wikipedia- Clone the repository:
git clone https://github.com/pranj4/AI-Virtual-Assistant
- Run the script:
python main.py- Speak a command, such as:
- "What is the time?"
- "Tell me about Python programming from wikipidea."
- "tell me about John Cena wikipedia"
-
The assistant starts by listening for a voice command.
-
Once it detects speech, it processes the audio and converts it into text.
-
Based on the command:
If you ask for the time, it fetches the current time and speaks it.
If you request Wikipedia information, it retrieves and reads a summary.
If the command is not recognized, it prompts you to try again.
- The assistant continues listening until you say 'stop', which terminates the program.

