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.
精彩评论