def speak(self, a=None, b=None, c=None): lispeak.speak(self.speech) return False
pass try: os.remove("result") except: pass try: os.remove("result_image") except: pass if os.path.exists("speak"): f = open("speak") body = f.read() f.close() if lispeak.getSingleInfo("TTS") == "True": if body != "": lispeak.speak(title+". "+body) else: lispeak.speak(title) except: pass while os.path.exists("pycmd_stop"): os.system("touch in_red") n.update(lispeak.translate("Please wait"),"",PWD+"/Not_Ready/stop.png") n.show() #try: # os.rename("pycmd_stop","pycmd_nocmd") #except: # pass time.sleep(.05) updateCount = updateCount + 1
def speak(self,a=None,b=None,c=None): lispeak.speak(self.speech) return False
pass try: os.remove("result") except: pass try: os.remove("result_image") except: pass if os.path.exists("speak"): f = open("speak") body = f.read() f.close() if lispeak.getSingleInfo("TTS") == "True": if body != "": lispeak.speak(title + ". " + body) else: lispeak.speak(title) except: pass while os.path.exists("pycmd_stop"): os.system("touch in_red") n.update(lispeak.translate("Please wait"), "", PWD + "/Not_Ready/stop.png") n.show() #try: # os.rename("pycmd_stop","pycmd_nocmd") #except: # pass time.sleep(.05) updateCount = updateCount + 1