I had this project of smoke detection.. so the smoke detector when it detects smoke will output a sound with a volume of 80dB, How can I measure dB using the raspberry pi and a USB microphone?
To measure decibels you would have two ways, after you acquire the signal from the microphone, apply Windowing (Hamming), do a Fast Fourier Transform (FFT), make the spectrum normalisation, apply A-Weighting and finally do your RMS calculation. From the RMS with the Perseval Theorem you can have your values in decibels dB.
Other option would be to do it by convolution, you would have to work with filters FIR, A Weighting and RMS calculation as well, you just take the FFT and spectrum out, and put signal convolution on top of it.
The USB microphone gives you what kind of data input? digital or analog?