GOOGLE SPEECH SEARCH
import speech_recognition as sr
import webbrowser
r = sr.Recognizer()
with sr.Microphone() as source:
print("What you want to search\n")
print("Listening.......\n")
audio = r.listen(source)
print(('opening : ' + r.recognize_google(audio)))
p = r.recognize_google(audio)
webbrowser.open(p)
Comments
Post a Comment