question

gavincheng avatar image
gavincheng asked

Idle detection ?

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!
alexa voice service
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Eric@Amazon avatar image
Eric@Amazon answered
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.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.