Programming help for kinect
-
Tuesday, April 24, 2012 3:32 PM
I am new to programming on kinect and I am trying to utilize the audio capabilities inside the kinect. I want to make a program that can play or rewind a video depending on how loud it is in a room. I want it to work like this:
if(sound threshold > a certain amount)
{
Play video clip
}
else if(sound threshold < a certain amount)
{
Rewind video clip
}
I just need to know the proper syntax for testing sound thresholds so I can make it do what I want.
Also what video types are best to use in Visual studio.
Thanks
All Replies
-
Monday, April 30, 2012 11:06 AM
Hi,
Please see a similar post for your requirement.
http://social.msdn.microsoft.com/Forums/en-US/kinectsdk/thread/081be403-5c10-4de7-8a35-b05d8231e94e
But the Rewind part may include complex code, based on what point of the video to rewind a) to start of the video or b) time based previous track
Hope this helps !
-
Tuesday, May 01, 2012 3:38 PMOwner
You'll need to write your own code for calculating the sound level in the room based on the audio signal. You can do this by opening the audio stream and computing RMS, actual loudness, or percieved loudness from the audio stream.
See http://en.wikipedia.org/wiki/Sound_pressure for a number of options on how to calculate/think about loudness.
- Proposed As Answer by Chris White _MSFT_Microsoft Employee, Owner Tuesday, May 01, 2012 3:38 PM
- Marked As Answer by Chris White _MSFT_Microsoft Employee, Owner Saturday, May 12, 2012 3:53 PM

