A Python script to covert speech from device microphone to text to perform basic calculations like a calculator.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system!
For running this script you'll need:
- Python
- An IDE
- Speech Recognition Module
- PyAudio Module
- PiP Installer
- An active internet connection as Google API needs internet to function
If you have Python up and running, all you need to do is download the external modules from the PiP Installer, just type:
pip install SpeechRecognition
pip install PyAudio
After this, you'll be ready to code!
Speak your desired numbers, and the calculation you want. If you wish to do more calculations you could do so by saying yes
in the end or else say no
.
- Python
- Google Speech-to-Text API
Feel free to connect with me on LinkedIn