def Main(): robotCar = EasyGoPiGo3() while True: command = speech.run() if command == 'go': print(command) robotCar.forward() elif command == 'back': print(command) robotCar.backward() elif command == 'left': print(command) robotCar.left() elif command == 'right': print(command) robotCar.right() elif command == 'stop': print(command) robotCar.stop() elif command == 'quit': print(command) robotCar.stop() break else: print("No command heard") continue
def speech_thread(): #Speech recognition mode while 1: while speech_mode: speech.run() time.sleep(0.2)
def speechRecProcessing(self): print("speechRecProcessing") speech.run()
def speechRecProcessing(self): print('speechRecProcessing') speech.run()