Android: Amplitude value to Decibel value?

杀马特。学长 韩版系。学妹 提交于 2019-12-09 06:44:38

问题


I'm trying to get the decibel of noise being recored from mic on Android phone. I can get amplitude value and looking for the formula to convert it into decibel.

I use following function of MediaRecorder to get amplitude.

mediaRecorder.getMaxAmplitude() ;

In another question I found the following formula.

power_db = 20 * log10(amp / amp_ref);

amp is amplitude but not sure what's amp_ref.

Is there anyone knows the correct formula?


回答1:


i think that is the correct formula. amp_ref is reference amplitude



来源:https://stackoverflow.com/questions/7523301/android-amplitude-value-to-decibel-value

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!