I am playing with the AVS example and trying to figure out if I can use idle detection to stop recording. Instead of clicking the "stop recording" button to trigger the action, it'll be great if we can apply some kind of Idle/silence detection and then stop recording automatically. Any hints are very appreciated!
The approach that is used in the reference client (see rmsChanged in AVSApp.java) is to measure the average signal power level. If it's below a certain threshold for a certain amount of time, trigger the stop recording function.