Пример #1
0
 def run(self):
     # Initialize and try to connect
     self.client = pyjulius.Client('localhost', 10500)
     self.client.modelize = True
     try:
         self.client.connect()
     except pyjulius.ConnectionError:
         print 'Start julius as module first!'
         sys.exit(1)
     # Start listening to the server
     self.client.start()
     self.result = ""
     self.think = Think()
     while (True):
         self.RequestMsg()
Пример #2
0
 def run(self):
     self.result = ""
     self.think = Think()
     while (True):
         self.RequestMsg()