Next Step
PrintText(aifriend, "Do you want to search for anything else?")
SpeakText(aifriend,"Do you want to search for anything else?")
r = sr.Recognizer()
with sr.Microphone() as source:
audio = r.listen(source)
speech = r.recognize_google(audio)On Basis of User response after text transformation, following actions are taken
if subStrCheck(transformedSpeech,"yes"):
PrintText(aifriend, "What else i can do?")
SpeakText(aifriend,"What else i can do?")
SpeechRecognization(aifriend)Last updated