Getting assistance 

The last part of the functionality we need to add is giving the user the ability to get assistance finding an item. For this, we will be using--voice. In this example, we will be using a prebuilt class bundled with the starter project, but will go into the details later on in this book, when we explore different modes of interaction. The class we will be making use of is the appropriately named SpeechManager. This class provides a very minimalist implementation for speech recognition; for each tag we identify, we add to SpeechManager via the asynchronous method AddTagsAsync, which will create phrases using the prefixes:

  • find tag
  • where is tag
  • locate tag

When a phrase is recognized, SpeechManager will broadcast the OnPhraseRecognized ...

Get Microsoft HoloLens By Example now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.