Making your mobile platform truly mobile by issuing voice commands
Now that your robot can move, wouldn't it be neat to have it obey your commands?
Prepare for lift off
You should now have a mobile platform that you can program to move in any number of ways. Unfortunately, you still have your LAN cable connected, so the platform isn't completely mobile. And once you have begun the program, you can't alter the behavior of your program. In this section, you will use the principles from Chapter 3, Providing Speech Input and Output, to issue voice commands to initiate movement.
Engage thrusters
You'll need to modify your voice recognition program, so it will run your Python program when it gets a voice command. If you feel rusty on how this works, review Chapter 3, Providing Speech Input and Output. You are going to make a simple modification to the continuous.c
program in /home/ubuntu/pocketsphinx-0.8/src/programs
. To do this, type cd /home/ubuntu/ pocketsphinx-0.8/src/programs
and then type emacs...