Cardboard Gets 3D Sound API
Written by Harry Fairhead   
Thursday, 14 January 2016

This could be the year of VR/AR, but it might not be due to expensive hardware. It might be because of Google's half joke Cardboard SDK. Now we not only have generated 3D vision, but sound as well.

 

 

cardboard2

 

I got bored over the recent holiday period and so I found plenty of time to put together a Google Cardboard VR headset. All you need is a couple of lenses, some cardboard and an Android mobile phone. It all seems a bit like a kindergarten project gone horribly wrong, but it works remarkably well.

cardbaord2

If you don't want to spend time with sticky tape and scissors then you can buy ready built units.

Google has just announced a new shake up of its VR division, which is also an admission that it has one and that it's not just the Cardboard team. 

wwcardboard

Until now one thing has seemed lacking in Cardboard's repertoire - sound!

Now we have a Sound API added to the Cardboard SDK. The new facility works from Unity or Java apps. The important thing is that this isn't just sound, it is 3D sound. This means that when you are using  Cardboard and have a pair of headphones on then the sounds that are generated will appear to come from a specific location. The only downside is that you have to be wearing headphones for it to work - built in speakers don't hack it.

If this sounds like magic then it certainly is when you listen to it.

This goes beyond simple stereo created by playing a sound at different volumes in the right and left ear. It also creates a sensation of front to back even though there are only to active sound generators in the system.

As the announcement puts it:

But with today’s SDK updates, your app can produce sound the same way humans actually hear it. For example: 

    • The SDK combines the physiology of a listener’s head with the positions of virtual sound sources to determine what users hear. For example: sounds that come from the right will reach a user’s left ear with a slight delay, and with fewer high frequency elements (which are normally dampened by the skull).

Yes this is subtle and you really don't want to try and achieve the same thing from scratch unless you have a lot of spare time.

In addition to the psycho-acoustics, the SDK will also do some physical modelling of the outside world. If you are supposed to be in a small room then the sound will echo and decay appropriately. If you are outside then it will create a spacious sound. Good quality immerse sound like this can really break down the barriers and make the VCR seem much more like being there. 

If this sounds like a lot of realtime computation for a low powered device, then the good news is that it has been designed for mobile use. It makes use of a separate thread and SIMD instruction to keep your app running. If there are resource problems then you can opt to lower the fidelity of unimportant sounds while keeping the quality high on sounds that do matter. 

The Unity SDK works on Android, iOS and OSX. For native Android apps there is a Java API. There seems to be no reason you can't use it in non-Cardboard apps as well.

There is a sample app so that you can try it out. 

 carboardgirl

More Information

Spatial audio comes to the Cardboard SDK

Google Cardboard

Related Articles

Cardboard Extends Its Reach 

Cardboard Outshines Glass 

Magic Leap's New Game Changer? 

The Most Exciting Thing At Google I/O - A Piece Of Cardboard 

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on, Twitter, FacebookGoogle+ or Linkedin

 

Banner


Data Wrangler Gets Copilot Integration
11/11/2024

Microsoft has announced that Copilot is being integrated into Data Wrangler. The move will give data scientists the ability to use natural language to clean and transform data, and to get help with fi [ ... ]



Kotlin Ktor Improves Client-Server Support
04/11/2024

Kotlin Ktor 3 is now available with better performance and improvements including support for server-sent events and CSRF (Cross-Site Request Forgery) protection.


More News

 

espbook

 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Thursday, 14 January 2016 )