Question
i am trying to make a noise detection tool to detect weather the room is very noisy, noisy or quite .. so how can i calculate the signal to noise ratio for recorded sound for 200 mSec. ?
Expert Answer
Kshitij Singh
PhD Expert
Answered Aug 20, 2026
to tell if a place is noisy, pros usually measure
dBA: on a microphone with known reception diagram, weighted air pressure signal power
weighted, you have to ponder the audio frequencies to correct the human hearing that is not flat over audible frequencies.
MATLAB already has an Audio Toolbox that, once the hardware correctly set up, allows to measure both audio pressure power weighted and unweighted.
There is already a standard dBA scale: for instance 30dBA is quiet, 120dBA is ~30m from jet take-off, there is a standard once you get to catch dBA in order to tell how noisy is a place.
If you decide to implement the weighting, the function is applied to spectrum amplitude.
To calculate audio SNR you may want to consider a sample measurement without the signal, calculate the noise power, then apply the signal, calculate signal power, and then SNR.
100% Run Guarantee
3-Hour Fast-Track Delivery
Need a Custom Version or Complete Simulation for This Problem?
Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.
Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here
Related Signal Processing Questions & Solutions
Browse All →
Explore similar technical troubleshooting questions and verified MATLAB solutions:
Ready-to-Run MATLAB & Simulink Projects
Browse All Projects →