Jump to content

Recommended Posts

Posted

Hi, I have been playing around with some code written by Danyfirex for sound detection, and I am confused as to how $oIAudioMeterInformation.GetPeakValue works. It returns a number that is anywhere from 0.0008xxxx to 0.003xxxx (tested it about 10 times), but it does not appear to be related to how loud the how loud the sound is. It doesn't seem to be a peak value of how loud the sound is.

In the end, I am trying to adjust the sensitivity of:

$oIAudioMeterInformation.GetPeakValue($fPeakValue)
If $fPeakValue > 0 Then

There are some very feint sounds in the background that trip my script when I don't want them to.

Any thoughts?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...