示例#1
0
 def speak(self, a=None, b=None, c=None):
     lispeak.speak(self.speech)
     return False
示例#2
0
                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
示例#3
0
 def speak(self,a=None,b=None,c=None):
     lispeak.speak(self.speech)
     return False
示例#4
0
             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