O'Reilly logo

Microsoft HoloLens Developer’s Guide by Dennis Vroegop

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

Adding voice to RockOn

We will add this prefab to our RockOn app. Let us make a game out of it. We can add guitars to our world by tapping on a location. When we do that, we see the new guitar and we hear a sound coming from that location. Would it not be fun to have someone tell us to place an instrument somewhere? I suggest we make the following changes:

  1. Have the SpatialVoiceGenerator prefab in our app.
  2. Wait a little while, somewhere between five and ten seconds.
  3. Let the system tell us: Place the guitar here.
  4. The voice should come from the direction in which we want the instrument to be placed.

Later, we can change this to include multiple instruments. If we also have drums, bass, microphones, and so on, we can easily change the spoken ...

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