Home » Android » How can I stop sound recording when there is no sound for 5 seconds

How can I stop sound recording when there is no sound for 5 seconds

Posted by: admin November 1, 2017 Leave a comment

Questions:

I wan to start the recording and continue for 5 seconds until silence
For example,
[startRecord]->[sound]->[sound]->[2 seconds silence]->[sound]->[1 second silence]->[sound]->[5 seconds silence]->[stopRecord]

I want to stop recording when there’s only 5 seconds and more silence

How can i do this with java or kotlin?

Answers: