コード例 #1
0
 def __init__(self):
     #Initialise speech server
     self.ss = SpeechServer()
     #Initialise Speech reconizer
     self.sr = SpeechReco()
     #Initialise command listener
     self.wr = WriteReco()
コード例 #2
0
class Jarvis(object):

    def __init__(self):
        #Initialise speech server
        self.ss = SpeechServer()
        #Initialise Speech reconizer
        self.sr = SpeechReco()
        #Initialise command listener
        self.wr = WriteReco()

    def start(self):
            # Start speech server
            self.ss.start()
            # start speech reco
            self.sr.start()
            # Start commande reco
            self.wr.start()