GOOGLE SEARCH BY SAYING SOMETHING

Please if you like my content Please 
do not forget to support this 
channel 
on PayPal now for $1 only! Or less 


import pywhatkit as kt
import speech_recognition as sr


try:
with sr.Microphone() as audio:
r = sr.Recognizer()

r.adjust_for_ambient_noise(audio, duration=0.2)

listen = r.listen(audio)

speech = r.recognize_google(listen)
speech = speech.lower()

voice = speech

kt.search(voice)

except sr.RequestError as e:
print('Internet error')

except sr.UnknownValueError:
print('Unknown error')

1 comment:

Drawing App For Kivy

  Below here is the source code for Drawing Application for kivy. Please if you like this content.  Don't forget to Subscribe to my YouT...