Build 2016 - P527 - Spatial Audio with AudioGraph in UWP

21
#Build2016 Spatial Audio - Spatial Sphere Demo Explained Steven Wilssens Senior Program Manager Silicon Graphics and Media

Transcript of Build 2016 - P527 - Spatial Audio with AudioGraph in UWP

Page 1: Build 2016 - P527 - Spatial Audio with AudioGraph in UWP

#Build2016

Spatial Audio - Spatial Sphere Demo ExplainedSteven WilssensSenior Program ManagerSilicon Graphics and Media

Page 3: Build 2016 - P527 - Spatial Audio with AudioGraph in UWP

What is Spatial Audio again?

Page 4: Build 2016 - P527 - Spatial Audio with AudioGraph in UWP

Spatial audio gives the illusion that sounds are coming directly from an object in a 3-dimensional space. They are audible all around the user.

When you hear something as if you would in real-life… coming from an application. That’s spatial audio.

What is Spatial Audio Again?

Page 5: Build 2016 - P527 - Spatial Audio with AudioGraph in UWP

UWP developers can convincingly place sounds in a 3-dimensional space (sphere) by using Microsoft’s HoloLens HRTF technology.

HRTF technologies work with all stereo headphones.You can now create spatial audio experiences in UWP apps and games on HoloLens, Desktop, Phone, and Xbox One.

Spatial Audio in Windows 10 @ //BUILD 2016

Page 6: Build 2016 - P527 - Spatial Audio with AudioGraph in UWP

What are HRTF’s again?

Page 7: Build 2016 - P527 - Spatial Audio with AudioGraph in UWP

Humans have just two ears, but can locate sounds in three dimensions:• Distance• Direction (above/below)• Front/Back, Left/Right

HRTF (Head-related transfer function)

This is possible because the brain, inner ear and the external ears (pinna) work together to make inferences about location.

Page 8: Build 2016 - P527 - Spatial Audio with AudioGraph in UWP

We take sound localization cues from one ear (monaural cues), and compare them with cues received at both ears (difference cues or binaural cues).

HRTF (Head-related transfer function)

• Left or right cues originate from differences in the time sound

• Up and down, front and back cues originate from spectral changes produced by the outer ear shape (pinnae).

• Distance cues originate from intensity and reflection differences.

HRTF transfers a sound to how an ear would receive that sound from a point in space.

Page 9: Build 2016 - P527 - Spatial Audio with AudioGraph in UWP

The AudioGraph 1.0 API

Page 10: Build 2016 - P527 - Spatial Audio with AudioGraph in UWP

Hello Old Friend - AudioGraph 1.0

Easy Coding Mic In Speaker

OutPlay from

FileSave to

FileLow

Latency Effects

Page 11: Build 2016 - P527 - Spatial Audio with AudioGraph in UWP

AudioGraph 1.0

🎤 📢

📄 💾

🔀

🎤

🔀

💠

DeviceInputNode

FileInputNode FileOutputNode

DeviceOutputNode

SubmixNode

IBasicAudioEffect

Page 12: Build 2016 - P527 - Spatial Audio with AudioGraph in UWP

The AudioGraph 1.1 API

Page 13: Build 2016 - P527 - Spatial Audio with AudioGraph in UWP

AudioGraph 1.1

🎤 📢

📄 💾

🔀🎤

🔀

💠

DeviceInputNode

FileInputNodeFileOutputNode

DeviceOutputNode

SubmixNode

IBasicAudioEffect

AudioNodeEmitter

AudioNodeListener

Page 14: Build 2016 - P527 - Spatial Audio with AudioGraph in UWP

Emitters and Listeners• Spatial audio source• Can be input or submix

node• Supported # of emitters

depends on multiple factors

• Orientation, Position, Velocity

Emitter

• Spatial receiver of audio• Only supports 1

listener/AudioGraph• Orientation, Position,

Velocity

Listener

Page 15: Build 2016 - P527 - Spatial Audio with AudioGraph in UWP

DEMO: Spatial Audio - AudioGraph

{Put on headphones to experience Spatial Audio}

http://aka.ms/spatialspheredemocode

Page 16: Build 2016 - P527 - Spatial Audio with AudioGraph in UWP

DEMO: Spatial Audio – AudioGraph

📢📄

🔀🔀💠

FileInputNode DeviceOutputNode

SubmixNode

ReverbAudioEffect

AudioNodeEmitter

Gain: 0.125

Gain: 1

Page 17: Build 2016 - P527 - Spatial Audio with AudioGraph in UWP

HRTF-based audio rendering with headphones greatly improves when headphones can track head orientation

Reduces:• Front-Back confusion• Sound Source Elevation confusion

Head movements from 2° to 32° may be required to ensure that spatial information is conveyed with high accuracy.

17

HRTFs and Head Orientation Tracking

Page 18: Build 2016 - P527 - Spatial Audio with AudioGraph in UWP

DEMO: Head Tracking and AudioGraph Listener Position

Powered by:

Jabra Intelligent Headset

Advanced sensor pack and dynamic 3D audio - and exciting new apps platform!

https://intelligentheadset.com/

{Put on headphones to experience Spatial Audio}

http://aka.ms/spatialspheredemocode

Page 19: Build 2016 - P527 - Spatial Audio with AudioGraph in UWP

DEMO: Spatial Audio – AudioGraph

📢📄

🔀🔀💠

FileInputNode DeviceOutputNode

SubmixNode

ReverbAudioEffect

AudioNodeEmitter

Gain: 0.125

Gain: 1

AudioNodeListener

Page 20: Build 2016 - P527 - Spatial Audio with AudioGraph in UWP

• Use AudioGraph to add spatial audio to UWP apps

• Emitters position sound sources in space• Listeners where you hear the audio• Head tracking increases the ability for users

to localize sound• It’s easy to enable spatial audio in your

UWP apps!

Summary

Page 21: Build 2016 - P527 - Spatial Audio with AudioGraph in UWP

• Download the Spatial Audio Sphere Sample (http://aka.ms/spatialspheredemocode)• Add Spatial Audio Sound to your UWP today

• Re-visit Build on Channel 9.• Continue your education at

Microsoft Virtual Academy online.

Call to Action