Social:

Audio Virtual Reality

By Netopya on Mon Sep 1st 2014 11:51 AM

Here is a video demoing my latest project called Audio VR. Virtual Reality is quite a hot topic nowadays and many devices aim to augment the experience of content on your computer. My idea was to augment the experience of the computer itself by moving the computer into your actual reality. Audio VR works by measuring the head's position and adjusting the audio output channels of the computer accordingly to simulate the location of the computer with respect to the head. By modifying the channels in the left and right ears of your headphones, you get a similar experience to using speakers. Read on to learn more about this project.

Planning and programming

When planning out this project, I was initially looking into IMUs (Inertial Measurement Units) that I could connect to an Arduino to record the head's motion. But then I asked myself if there were any devices I had lying around that had similar motion sensing capabilities and realized that I could use any modern mobile device for testing instead of investing in new hardware. I decided to use my 4th generation iPod Touch which has the requisite motion sensor and wireless connectivity already. To program the sensing side, I chose to create a web application since I am most comfortable with this type of programming. Furthermore, the code can be used on any device by just navigating to the URL. The DeviceOrientation Event Specification allows JavaScript to retrieve the motion information from the device to be used by the web application. AJAX requests transmit the orientation of the device to a server where a PHP file writes the data to a text file. On the client side, a C# program reads the orientation information from the text file and can calculates the appropriate volumes for the right and left ears. The Windows Core Audio API (with Vannatech wrappers) is used to have access to the Windows audio mixer and modify the left and right channels.

Closing Thoughts

In the end, I found the effect achieved a bit disappointing. The system doesn't really augment the experience of using a computer as much as I hoped, besides the realization that I don't frequently look side to side when using my computer. For these reasons I do not believe it will be worthwhile to go on and get better hardware to improve the project. One application I thought that this application may be useful would be in a multi-monitor setup where applications running on different monitors would have their individual left and right audio channels modified to match their position with respect to the user. For example looking at the left monitor would decrease the left track volume in applications on the rightmost monitor. But such an implementation would be difficult in Windows since security reasons prevent external modifications of a program's private audio mixer.

In the end I really enjoyed working on this project and impressed myself with what could be accomplished by throwing together every day electronic devices and making them work in unison for something that none of them were really designed for.

Code on GitHub

Comments

Juliedub on Fri Nov 17th 9:09 AM said:

This message is posted here using XRumer + XEvil 4.0 \r\nXEvil 4.0 is a revolutionary application that can bypass almost any anti-botnet protection. \r\nCaptcha Recognition Google (ReCaptcha-1, ReCaptcha-2), Facebook, Yandex, VKontakte, Captcha Com and over 8.4 million other types! \r\nYou read this - it means it works! ;) \r\nDetails on the official website of XEvil.Net, there is a free demo version.

Juliezdub on Sun Nov 26th 4:56 AM said:

This message is posted here using XRumer + XEvil 4.0 \r\nXEvil 4.0 is a revolutionary application that can bypass almost any anti-botnet protection. \r\nCaptcha Recognition Google (ReCaptcha-1, ReCaptcha-2), Facebook, Yandex, VKontakte, Captcha Com and over 8.4 million other types! \r\nYou read this - it means it works! ;) \r\nDetails on the official website of XEvil.Net, there is a free demo version.

MashaGoode on Fri Dec 22nd 4:39 AM said:

This message is posted here using XRumer + XEvil 4.0 \r\n \r\nXEvil 4.0 is a revolutionary application that can solve any anti-botnet captcha. \r\nCaptcha Solution Google (ReCaptcha-1, ReCaptcha-2), Facebook, BING, Hotmail, Yahoo, \r\nYandex, VKontakte, Captcha Com - and over 8.4 million other types! \r\n \r\nYou read this - it means it works! ;) \r\nDetails on the official website of XEvil.Net, there is a free demo version. \r\n \r\nCheck YouTube video \\\"XEvil ReCaptcha2\\\"

Williamlop on Tue Jan 16th 4:10 PM said:

viagra online prescription <a href=http://v1agrawithoutprescript.com/#>viagra without a doctor prescription usa</a> pharmacy without dr prescriptions http://v1agrawithoutprescript.com/

Leave a comment:

Email is optional, will not be shown

Leaving your e-mail is optional and I will only use your e-mail to contact you if you ask for me to do so in your comment.

©netopyaplanet.com