How can I calculate audio dB level?

后端 未结 7 1642
-上瘾入骨i
-上瘾入骨i 2020-11-27 10:27

I want to calculate room noise level with the computer\'s microphone. I record noise as an audio file, but how can I calculate the noise dB level?

I don\'t know how

相关标签:
7条回答
  • 2020-11-27 10:51

    You can't easily measure absolute dB SPL, since your microphone and analogue hardware are not calibrated. You may be able to do an approximate calibration for a particular hardware set up but you would need to repeat this for every different microphone and hardware set up that you plan to support.

    If you do have some kind of SPL reference source that you can use then then it gets easier:

    • use your reference source to generate a tone at a known dB SPL - measure this
    • measure the ambient noise
    • calculate noise level = 20 * log10 (V_noise / V_ref) + dB_ref

    Of course this assumes that the frequency response of your microphone and audio hardware is reasonably flat and that you just want a flat (unweighted) noise figure. If you want a weighted (e.g. A-weight) noise figure then you'll have to do rather more processing.

    0 讨论(0)
提交回复
热议问题