[英]How do I record sound intensity in decibel in an Android application using a microphone?
I need to measure ambient noise on my android application. 我需要在我的android应用程序上测量环境噪声。 Let's say I allow the microphone to be turned on briefly, say 30 seconds.
假设我允许麦克风短暂打开,例如30秒。 I would like to have a decibel value in return that is representative of the sound intensity.
我希望有一个代表声音强度的分贝值。
I do not want to record any sound. 我不想录制任何声音。 I want to simply calculate the intensity of the noise captured through the microphone for 30 seconds and turn the microphone off.
我只想简单地计算30秒通过麦克风捕获的噪音强度,然后关闭麦克风。
PS I am newbie and clueless. PS我是新手,一无所知。 I'd need step by step sample code.
我需要逐步的示例代码。
这是一个完全满足您需求的开源项目
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.