Skip to content

putul03/Voice_Assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Voice Assistant

Description

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.

Features

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

Getting Started

Prerequisites

  • Python 3.x installed
  • Required libraries and dependencies (pyttsx3, speech_recognition, datetime, pyjokes, os, time)

Installation

  1. Clone the repository: git clone https://github.com/yourusername/voice-assistant.git
  2. Install the required dependencies: pip install pyttsx3 speechrecognition pyjokes

Usage

  1. Open a terminal or command prompt.
  2. Navigate to the project directory: cd voice-assistant
  3. Run the main Python script: python main.py
  4. Say "Hello" to activate the assistant and begin interacting with it.
  5. You can ask the assistant for its name, age, current time, jokes, or instruct it to open YouTube or Gmail.
  6. To exit the assistant, say "exit."

Examples

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

Contributing

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.

Acknowledgments

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

Contact

For any inquiries or feedback, please contact [[email protected]].

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages