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.
Monday, April 30, 2012 11:06 AM
Please see a similar post for your requirement.
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.