#tablet_module.hideImage() # Say the summary speak_module.say(content) time.sleep(1) # Starting the recognizer rec = Recognizer(IP) while True: speak_module.say("Do you want more information?") # Listening for the answer user_input = rec.listen() rec.cleanMemory() print user_input if user_input == "yes": speak_module.say( "Great! Which one of the following topic would you like to know more about?" ) for i in sections: speak_module.say(i) print i # Listening for the answer user_input_section = rec.listen() rec.cleanMemory() print user_input_section