/SpeechToTextCalc

A Python Script using Google Speech-To-Text API to do basic calculations.

Primary LanguagePython

Speech-To-Text Calculator using Google API

A Python script to covert speech from device microphone to text to perform basic calculations like a calculator.

Getting Started

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!

Prerequisites

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

Installing

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!

Input and Output

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.

Built With

  • Python
  • Google Speech-to-Text API

Feel free to connect with me on LinkedIn