How do I calculate the SPL from a .wav file with a calibrated value?

11 visualizaciones (últimos 30 días)
Samuel Entwistle
Samuel Entwistle el 10 de Dic. de 2020
Comentada: Mathieu NOE el 7 de Abr. de 2022
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.

Respuestas (1)

Mathieu NOE
Mathieu NOE el 10 de Dic. de 2020
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 comentarios
Md Saiful Islam
Md Saiful Islam el 7 de Abr. de 2022
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
Mathieu NOE el 7 de Abr. de 2022
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.

Iniciar sesión para comentar.

Categorías

Más información sobre Measurements and Spatial Audio en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by