I am designing an iOS app which works on sound response.
The sound can be of anything. Whenever the user says something or basically when the microphone receives any sound I want to control the phone's flashlight or I want to take any action I want. That should not occur if there is no sound.
The approach is simple u say something in microphone flashlight is ON you are quiet flashlight is OFF or u can say if mic recognise any sound coming from anywhere flashlight is ON if no sound flashlight is OFF. Thats it.