Activate spatial audio for your HoloLens 2 application
Learn about spatial audio to enhance your learning experience. Explores the use of spatial audio by integrating it to a HoloLens 2 application.
Learning objectives
By the end of this module, you'll be able to:
- Import the Mixed Reality Toolkit (MRTK).
- Import and enable the Microsoft Spatializer plugin and also enable the spatial audio on your workstation.
- Spatialize the button interaction sounds and use an audio clip to test spatialized button interaction.
- Spatialize audio from a video source and try out your app on a HoloLens 2 or in the Unity editor. You'll see and hear the video, and the audio from the video is spatialized.
- Enable and disable spatialization at run time, test out the app on a HoloLens 2 or in the Unity editor. In the app, you can now click the button to activate and deactivate spatialization of the audio.
Prerequisites
- A Windows 10 or 11 PC configured with the correct tools
- Windows 10 SDK 10.0.18362.0 or later
- (Optional) A HoloLens 2 device configured for development
- Unity Hub with Unity 2021.3 or later installed and the Universal Windows Platform Build Support module added
- Set up a mixed reality project in Unity module
- Mixed Reality Feature Tool
- Basic familiarity with Unity: interface, scene creation, package import, addition of GameObjects to a scene