none
Way to detect the increase in audio level ? RRS feed

  • Question

  • Hello,

    Is there any way to detect the audio level in a room using kinect microphones ?

    Thanks

    Vamsee

    Wednesday, April 25, 2012 10:36 AM

Answers

  • You can calculate the RMS or dB rating of the signal over some period and then detect when that gets higher.  Depending on your scenario (do you want to notice a clap as louder, or only a sustained increase in volume), you could just compare on a frame by frame basis, or you could track average power over a period and look for a sustained increase.

    Tuesday, May 1, 2012 3:34 PM

All replies

  • You can get Cofidence of the signal from SpeechRecognizedEventArgs. e.Result.Confidence

    This might be helpful for you

    Wednesday, April 25, 2012 11:26 AM
  • You can calculate the RMS or dB rating of the signal over some period and then detect when that gets higher.  Depending on your scenario (do you want to notice a clap as louder, or only a sustained increase in volume), you could just compare on a frame by frame basis, or you could track average power over a period and look for a sustained increase.

    Tuesday, May 1, 2012 3:34 PM
  • Confidence may indeed be helpful, but it will not tell you how loud the events in the room are.  It will however, tell you how certain the speech engine is that a particular utterance was said by the speaker, which is very useful for speech scenarios.
    Tuesday, May 1, 2012 3:35 PM