Thursday 9 January 2014

Speech recognition for the robotic arm

While waiting for the step motor to arrive I had the idea of adding speech recognition to the C# project.  It was incredibly simple using the in-build Speech Recognition capabilities of Windows.

In summary;
  1. Create a grammar with the phrased command (utterances) such as "light on", "shoulder down"
  2. Use the speech recogniser to pick up the spoken commands
  3. Parse the plain text result and use a simple Switch statement to run the relevant arm command
  4. It really was that simple!

Screenshot of the updated GUI which now accepts voice commands


A short video of the arm moving via voice commands


Some snippets of the code:

 Creating the grammar and running the recogniser



Parsing the recogniser results and calling the corresponding arm movement function

No comments:

Post a Comment