Click here to Skip to main content
15,893,594 members
Please Sign up or sign in to vote.
1.50/5 (2 votes)
See more:
How do i calculate the dB level of an audio by using the microphone in the WindowsPhone.
any suggestion would be great.

thanks in advance
Posted
Updated 15-Mar-13 2:58am
v2
Comments
Jegan Thiyagesan 12-Mar-13 8:58am    
What have you searched for?
What have you tried?
Where did you get stuck?
Sergey Alexandrovich Kryukov 12-Mar-13 11:43am    
You should calculate it from scratch, using some fragment of a sample. First, calculate RMS in relative units.
For example, if you have 16-bit samples, recalculate each samples as double sample = bufferSample / System.Int16.MaximumValue...
Then read on the definition of dB and use it...

This is a relative measure, not reflecting physical noise level from the speaker (which always depends on number of factors). You can take maximum digital signal (such as System.Int16.MaximumValue) as a reference level...
—SA
deepaksharma0390 13-Mar-13 6:27am    
@Sergey Alexandrovich Kryukov but how do i find the sound pressure value for calculating the RMS of the sound pressure.
Sergey Alexandrovich Kryukov 13-Mar-13 11:41am    
You cannot. Sound pressure depends on may factors you don't control (hardware, even the room). You can only deal with relative levels, isn't that obvious?
—SA
deepaksharma0390 13-Mar-13 11:57am    
then how can i calculate the RMS sound pressure...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900