how to calculate sound level (spL) audio file (*.wav) ?

조회 수: 59 (최근 30일)
ngoc quy hoang ngoc quy
ngoc quy hoang ngoc quy 2021년 2월 27일
댓글: ranavind 2023년 1월 31일
calculate sound level

답변 (1개)

jibrahim
jibrahim 2021년 3월 4일
Hi ngoc,
You can use splMeter from Audio Toolbox.
% EXAMPLE: Calculate sound pressure level of signal
audFileName = 'FunkyDrums-44p1-stereo-25secs.mp3';
scope = timescope('SampleRate',Fs,...
'TimeSpanSource','property',...
'YLimits',[20 110], 'AxesScaling','auto',...
'ChannelNames',...
{'LAF', 'LAeq', 'LApeak', 'LAmax'});
sm = splMeter('TimeWeighting', 'Fast',...
'FrequencyWeighting', 'A-weighting',...
'SampleRate', Fs, ...
'TimeInterval',2,...
'CalibrationFactor',1);
x = audioread(audFileName);
[LAF,LAeq,LApeak,LAmax] = sm(x(:,1));
scope([LAF,LAeq,LApeak,LAmax])
  댓글 수: 12
Justin
Justin 2022년 10월 29일
Hi, any idea how to obtain the L10, L50 and L90 sound level from an audioread() file?
ranavind
ranavind 2023년 1월 31일
Any Idea, How to use this code in another application like .Net or Python

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by