How do I calculate the SPL from a .wav file with a calibrated value?
11 次查看(过去 30 天)
显示 更早的评论
I have a signal that I need to calculate the SPL for.
I have a calibrated signal recording a 1kHz tone at 94dB SPL.
I've found that the Fs=44100.
Both are a wav file and I don't know where to start, I'd really appreciate a push in the right direction.
0 个评论
回答(1 个)
Mathieu NOE
2020-12-10
hello
you can simply compare the rms value of the two wav files
to know the SPL of the signal vs the calibrated signal :
SPL = SPL(signal_cal) + 20*log10(rms(signal) / rms(signal_cal))
2 个评论
Md Saiful Islam
2022-4-7
Hello Mathieu,
Thanks a lot for your response. However, the amplitude of the wav file is not in pressure. Can you suggest an way how can I find the pressure value from the wav file. Consider I have both the signals from calibrator and noise measurement.
Mathieu NOE
2022-4-7
hello
look at the fft dB amplitude you get with the wav file from the calibrator
so for example, assuming the calibrator genrates 94 dB SPL et the fft plot shows -20 dB , then your dB shift fatcor is 94 +20 = 114 dB. You have to add this factor to all fft plots (in dB) when running the code on wav files.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Measurements and Spatial Audio 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!