Auto Position Action from Speech Recognition

This tutorial is mainly focused on speech recognition. We will demonstrate how to have the speech recognition robot skill trigger an auto position action. This is an example of adding user-defined phrases to the speech recognition robot skill. While there are many speech recognition robot skills available in ARC, we will be using the default Speech Recognition robot skill.

*Note: While a built-in computer microphone will work, it is recommended to use a handheld, headset, or dedicated microphone that doesn't pick up ambient sound. The speech recognition system works best when it only hears your voice. Other speech recognition robot skills, such as the Bing Speech Recognition, have higher quality recognition and can successfully detect speech in a noisy environment. The speech recognition robot skill in this tutorial is not as accurate, and therefore we recommend the dedicated microphone.


Requirements

  • Connected to an EZB
  • Configured Auto Position with defined actions
  • Computer with a soundcard and microphone


Robot Skills Used

The following robot skills are used in this tutorial. Click any of these to further read the manuals for the robot skills.



Let's Do It

Add the Speech Recognition robot skill. Do this by pressing the Project -> Add Robot Skill from the top menu.



When the Add Robot Skill window opens, select the Audio tab and click the Speech Recognition robot skill. This will add the robot skill to the project.



Now that the robot skill is added to your project press the configuration button on the speech recognition robot skill. This will open the configuration window for the skill.



In the configuration window, there will be several default phrases with code. These default phrases are bound to movements to control a movement panel. We'll be adding two of our phrases to recognize.



Enter the phrase "Robot do my action" in the first available empty phrase.



Press the Command button next to the new phrase to open the script window.



Press the Javascript tab. In the editor, right-click and select the auto position. Scroll and select the action item with the mouse you wish to execute.



Press the SAVE button on the script window.



Press SAVE on the speech recognition configuration window



Speak the commands "Robot do my action". Notice the auto position action will execute.





More Stuff

There are other robot skills to explore for speech recognition. The recommended robot skill for the highest quality is the Bing Speech Recognition robot skill. The configuration of this robot skill is similar to this tutorial. One of the advantages of the Bing Speech Recognition robot skill is that it will translate any speech, not only the defined phrases. You can feed the output to a chatbot to give your robot conversational capabilities by detecting any speech.

  • Bing Speech Recognition robot skill
    The recommended robot skill provides higher quality detection and more capabilities for customization.

  • Robot Chat Video Example
    This video is an example of using the ControlCommand to control other robot skills for conversation interaction. Such as the Bing Speech recognition with a chatbot, camera, and cognitive services.