O'Reilly logo

Microsoft HoloLens By Example by Joshua Newnham

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Grammar Recognizer using Speech Recognition Grammar Specification (SRGS)

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required