0

I have to display microphone voice level, we are displaying seekbar which will increase when when someone is speaking and decrease when there is silence, i don't know what this is called technically, but by doing some research i have found that its called decibel(dB).

There are many answers i have checked Get the Microphone sound level ( Decibel level) but i'm not using MediaRecorder so i can't get amplitude as stated in answer, i only have ByteArray of current microphone input.

Now my main question is how i can get microphone voice level(or maybe decibel) from only having ByteArray?

I have also checked many other questions like:
android-detect-sound-level.
android-find-decibels.

But most of them suggest to use formula which depends on amplitude or anything else related to amplitude like aplitudeRef, so please let me know can i get voice level with only having ByteArray of pcm buffer

  • Does this answer your question? [How to calculate the level/amplitude/db of audio signal in java?](https://stackoverflow.com/questions/26574326/how-to-calculate-the-level-amplitude-db-of-audio-signal-in-java) – Scott Stensland Feb 27 '21 at 14:39
  • @ScottStensland Thanks for link, but it does not help, because i do not know `TargetDataLine` is there and how/what i can use in my case to at place of it. – Kulwinder Singh Rahal Feb 28 '21 at 06:09

0 Answers0