"""
Speech To Text

***********
Windows users needs to pip install pyaudio
if you have python version 3.6 or below, you can pip install pyaudio
pyaudio cannot be installed through pip for python 3.7 or later
so you might have to download wheel files using the below link
https://www.lfd.uci.edu/~gohlke/pythonlibs/


******
Mac Users might need to
pip3 install SpeechRecognition
pip3 install portaudio
pip3 install pyaudio
"""
import speech_recognition as sr

# obtain audio from the microphone
r = sr.Recognizer()
with sr.Microphone() as source:
    print("Say something!")
    audio = r.listen(source)

a = r.recognize_google(audio)
print(a)

