Skip to content

A repository of a speech-driven virtual assistant powered by Speech Recognition for voice input, pyttsx3 for text-to-speech, Pywhatkit and webbrowser for web tasks, plus Wikipedia lookups and programmer jokes via pyjokes.

License

Notifications You must be signed in to change notification settings

DanteVela/Voice-Assistant-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Voice Assistant using Python

Python Logo

A simple GitHub repo project utilizing Python for AI Learning.

A showcase of a speech-driven virtual assistant powered by Speech Recognition for voice input, pyttsx3 for text-to-speech, Pywhatkit and webbrowser for web tasks, plus Wikipedia lookups and programmer jokes via pyjokes.

Installing / Getting Started

A quick introduction of the minimal setup you need to get a Hello World up & running in VS Code.

Install "VS Code" and "Python"
Ensure the "Environment Variable" is included in "the Path" within Python ("Click the Checkbox")
Install the needed "Extensions for VS Code" ["Python by Microsoft, Python Debugger by Microsoft, etc"]
Other Extensions may include ["GitHub, Markdown, Elint/lint, etc"] to utilize GitHub Version Control and other language syntax
Start coding Python
You can run the code by using the following: ["python filename.py"]

Congrats! You just created your first "Voice Assistant" file and there's so much more you can do so experiment to your hearts content!

Initial Configuration

Requirements:

  • Ensure that the project file/folder and other dependencies you plan to make is within the range for code execution.

  • Ensure you have a GitHub account to make project repos and save changes to prevent loss of progress with your code in the future.

Developing

In order to start developing the project further:

git clone https://github.com/username/project-name.git
cd project-name/

After setting up GitHub and the GitHub repo, you should be able to clone/commit/publish your progress as you make changes to the project.

Building

To build the project after some code changes:

commit changes by using the GitHub extensions from VS Code or by using the terminal via commands
stash/push the changes into the main/master branch of the project or in another branch if needed

After commiting and pushing the changes into GitHub, you should see the project repo change to reflect the most recent code.

Deploying / Publishing

In case you want to publish your project to a server:

Ensure that the project is fully functional and give appropiate credit to all contributors/authors.
Provide a step-by-step process of how you managed to complete the project.
Check the project and live server before finalizing the project status.

If you want to use GitHub or any other 3rd party platform for your server, you can but it may prove to be difficult with the lack of updated tutorials for all sorts of software services. [You can checkout the masterPortfolio repo to see how to use GitHub pages]

Features

This project repo has the following:

  • Speech-to-text input: captures your voice via microphone and converts it into text using the SpeechRecognition module

  • Text-to-speech output: speaks back responses through pyttsx3

  • Dynamic greeting: says “Good Morning/Afternoon/Evening” based on current time

  • Wikipedia search: looks up any topic on Wikipedia and reads you a short summary

  • Web navigation: opens popular sites (YouTube, Google, etc.) in your default browser

  • Time queries: reports the current system time on demand

  • Jokes on request: fetches and recites programmer jokes via pyjokes

  • Continuous listen–and–respond loop: stays active until you say “exit” or “bye” and then shuts down gracefully

  • Easily extensible: clear, modular code structure lets you plug in new commands (email, music playback, custom APIs, etc.) without rewriting the core loop

Links

Helpful links that you can use with your project:

  • GitHub Commands Cheat Sheet: [https://github.com/tiimgreen/github-cheat-sheet]
  • In case of sensitive bugs like security vulnerabilities, please use the issue tracker or contact me directly. We value your effort to improve the security and privacy of this project!

References

"Give Credit where its Due": Credit goes to all the original repo owners, contributors, and author into making this project. (If possible, please provide the GitHub URLs and names to all that contributed including the project owner)

Licensing

Licence

"The code in this project is licensed under MIT license."

About

A repository of a speech-driven virtual assistant powered by Speech Recognition for voice input, pyttsx3 for text-to-speech, Pywhatkit and webbrowser for web tasks, plus Wikipedia lookups and programmer jokes via pyjokes.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages