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;
Some snippets of the code:
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;
- Create a grammar with the phrased command (utterances) such as "light on", "shoulder down"
- Use the speech recogniser to pick up the spoken commands
- Parse the plain text result and use a simple Switch statement to run the relevant arm command
- It really was that simple!
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