In the preceding section, we implemented the functionality to allow the user to control the robot using single words and short phrases, but this approach lacks the expressiveness that makes language so powerful and natural. In this section, we will explore an alternative approach that is more expressive and more inline with how people talk. We will be using GrammarRecognizer, which is available in the UnityEngine.Windows.Speech namespace, and will start off by looking at how to build a corpus of phrases we want to recognize, and then create a new PlayStateVoiceHandler to integrate it into the example.
The corpus of phrases we want to recognize will be written in an XML ...