5
$\begingroup$

Doing time domain processing of incoming audio. I sample the power level every 0.25s and keeping a running average of intensity over 5 samples. When the power level of the current sample is 10dB greater than the moving average, we start recording.

What are the correct names for these numbers? I also use the same method to trigger recording stop. Is this the same terminology?

I have the code and will use your suggestion to name the variables correctly.

Thank you.

$\endgroup$
  • 1
    $\begingroup$ (It's often useful to keep a recording buffer of the last few seconds of audio, so that when the trigger is hit, you have the time immediately before the trigger recorded, too.) $\endgroup$ – endolith Apr 6 '12 at 15:50
6
$\begingroup$

"Running average" is fine. You can also call it the moving average.

I suppose you could call the variable associated with the 10dB number the signal detection threshold.

| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.