Skip to content

pranj4/AI-Virtual-Assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

AI Virtual Assistant Named Hisenberg

Project Overview

This is a Python-based AI Virtual Assistant that performs tasks such as:

  • Recognizing voice commands
  • Telling the current time
  • Fetching information from Wikipedia

Features

  • Voice Recognition: Uses speech_recognition to listen to user commands.
  • Text-to-Speech: Uses pyttsx3 to respond with a human-like voice.
  • Time Functionality: Can tell the current time.
  • Wikipedia Search: Fetches information based on user queries.

Installation

Prerequisites

Ensure you have Python installed. You can download it from python.org.

Install Dependencies

Run the following command to install required libraries:

pip install pyttsx3 speechrecognition pyaudio wikipedia

Usage

  1. Clone the repository:
git clone https://github.com/pranj4/AI-Virtual-Assistant
  1. Run the script:
python main.py
  1. Speak a command, such as:
    • "What is the time?"
    • "Tell me about Python programming from wikipidea."
    • "tell me about John Cena wikipedia"

File Structure

image

How It Works

  • 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.

Preview of Working in Terminal

image

About

AI-Powered Virtual Assistant + Voice Recognition - Challenge 1 for Pyhackathon

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages