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