安卓:振幅值分贝值? [英] Android: Amplitude value to Decibel value?

查看:440
本文介绍了安卓:振幅值分贝值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让噪音的分贝,从话筒的Andr​​oid手机被条记录。我能得到振幅值,并寻找下式将其转换成分贝。

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.

我用下面的MediaRecorder功能得到幅度。

I use following function of MediaRecorder to get amplitude.

mediaRecorder.getMaxAmplitude();

mediaRecorder.getMaxAmplitude() ;

在<一个href="http://stackoverflow.com/questions/6571894/calculate-decibel-from-amplitude-android-media-recorder">another问题我发现下面的公式。

power_db = 20 * LOG10(安培/ amp_ref);

power_db = 20 * log10(amp / amp_ref);

安培的幅度,但不知道什么是 amp_ref

amp is amplitude but not sure what's amp_ref.

有没有人知道正确的公式?

Is there anyone knows the correct formula?

推荐答案

我认为这是正确的公式。 amp_ref是参考幅度

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

这篇关于安卓:振幅值分贝值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆