Example #1
0
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
Example #2
0
def speech_thread():  #Speech recognition mode
    while 1:
        while speech_mode:
            speech.run()
        time.sleep(0.2)
Example #3
0
 def speechRecProcessing(self):
     print("speechRecProcessing")
     speech.run()
Example #4
0
 def speechRecProcessing(self):
     print('speechRecProcessing')
     speech.run()