0

I have written an app that records the sound of your environment using the built in microphone. I am trying to use this recorded data so that I can differentiate between loud environment sound and low environment sound. I have tried a Fourier transform on the recorded data and taking the log scale and tried thresholding it but its not accurate in differentiating these sounds. Is there any other way of doing it in software to differentiate dynamic range of sound of the surroundings?

Al Lelopath
  • 6,448
  • 13
  • 82
  • 139

1 Answers1

0
Try to use this api :

 public double getAmplitude() {
 if (mRecorder != null)
     return  mRecorder.getMaxAmplitude();
 else
     return 0;

 }

Refer this DOC

KOTIOS
  • 11,177
  • 3
  • 39
  • 66