Python app that uses speech recognition and text-to-speech module to perform actions based on user's voice commands. This app initially used the Google text-to-speech API (gTTS), but has been updated to use the offline text-to-speech module pyttsx3.
Python 3.8.3
Use python assitant.py from the root directory of the project.
pip install SpeechRecognition
pip install pyttsx3
pip install PyAudio
pip install pyperclip
If there is any issue in installing PyAudio then download and install the appropriate .whl file from this link
For example, as I used python 3.8 for this project, I had downloaded PyAudio-0.2.11-cp38-cp38-win32.whl from the link.
You can add other commands, but these are some tasks it can currently perform
- Tell the current date and time
- Search Google and youtube
- Play rock, paper, and scissor
- Read highlighted/selected text
- Open any website
Use Homebrew to install the prerequisite portaudio library, then install PyAudio using pip:
brew install portaudio
pip install pyaudio
If not already installed, download Homebrew. pip will download the PyAudio source and build it for your version of Python. Homebrew and building PyAudio also require installing the Command Line Tools for Xcode. Visit https://people.csail.mit.edu/hubert/pyaudio/ for more information.
-
Fork the repository.
-
Create a new branch:
git checkout -b feature/your-feature
-
Make your changes.
-
Commit your changes
git commit -a 'Add new feature' -
Push to the branch
git push origin feature/your-feature
-
Create a new Pull Request.
This project is open-source and licensed under the MIT License.