tags:

views:

22

answers:

0

I'm currently entertaining the idea of writing a sound triggered feature in an Android application. Think classic "clapper"..

I'm not going into implantation specific details at this point, as I'm more or less trying to figure out the right way to go about this.

The AudioRecord class provides a way to read raw byte. Should I simply listen to this stream and choose to trigger the event a certain level?

This isn't really a problem though, the question it all boils down to is; as continuously capturing and analyzing the microphone audio stream most probably takes quite a lot of resources (read: battery), is there a more "suitable" way to achieve this behavior?