2

I have tried many examples of noise level detection from that some following examples I tried and debug:

But I am get little bit confused on the following points:

  • Difference between recording audio using Android MediaRecorder and AudioRecorder class (best settings to require good quality audio for both classes).
  • How to calculate sound level into decibel using amplitude? (Please correct me if I am asking about wrong calculation or parameters)

Please share your ideas, documentation (that helps me to understand this concept), examples, tutorials, etc.

halfer
  • 19,824
  • 17
  • 99
  • 186
Anil Ravsaheb Ghodake
  • 1,587
  • 2
  • 27
  • 45

1 Answers1

2

To calculate decibels you need a background reading. Decibels is the ratio of signal:noise, so you need to know what the background noise is. Once you have that, the formula is db= 10*log(signal/noise)

Gabe Sechan
  • 90,003
  • 9
  • 87
  • 127
  • But In which form I will get signal through android device (Is it in amplitude form or frequency?) and What is the value for noise?(Is it equals to 2700 or different?) – Anil Ravsaheb Ghodake Jan 17 '17 at 05:48
  • 1
    Amplitude. Frequency wouldn't make sense here- frequency is pitch, not loudness. Noise wouldn't be a constant number, it would be the value on the device when there is no sound- you calibrate it in a quiet environment. – Gabe Sechan Jan 17 '17 at 05:54