0

Is there any library or method I use to achieve this? I know that I have to read the bytes in the files at blocks at a time, check if their values are below or above a specific threshold and detect the silence. However, I can't seem to find a library to calculate rms or threshold values of an audio file

  • Check this out it gets the gain from audio and other stuff https://github.com/google/ringdroid/blob/master/app/src/main/java/com/ringdroid/soundfile/SoundFile.java – JRowan Jan 12 '18 at 00:32

1 Answers1

0

You can calculate the RMS values manually. Check out the implementation by Samsung here: android AudioRecord amplitude reading from MIC

jddantes
  • 13
  • 2