开发者

Is there any Listener for Media Recorder?

Actually i am creating an application which starts recording when user start speaking and stop recording automatically when user stop speaking.

so is there any way to find if user is speaking or not? is there any listener fo开发者_运维技巧r Media Recorder for this?


No, AFAIK there are no listeners or intents that would notify your app that sound level has gone above some threshold (e.g. user started talking).

You could use AudioRecord class to record the microphone audio and then analyze it to see the volume. However this would require your app to run at that time.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜