Android PCM Bytes

前端 未结 5 965
无人共我
无人共我 2020-12-28 21:30

I am using the AudioRecord class to analize raw pcm bytes as it comes in the mic.

So thats working nicely. Now i need convert the pcm bytes into decibel.

I h

5条回答
  •  忘掉有多难
    2020-12-28 22:15

    The reference pressure in Leq (sound pressure level) calculations is 20 micro-Pascal (rms). To measure absolute Leq levels, you need to calibrate your microphone using a calibrator. Most calibrators fit 1/2" or 1/4" microphone capsules, so I have my doubts about calibrating the microphone on an Android phone. Alternatively you may be able to use the microphone sensitivity (Pa/mV) and then calibrate the voltage level going into the ADC. Even less reliable results could be had from comparing the Android values with the measured sound level of a diffuse stationary sound field using a sound level meter. Note that in Leq calculations you normally use the RMS values. A single sample's value doesn't mean much.

提交回复
热议问题