I am working on a voice recorder application. I want to know if there is a way to find the power of sound during recording. I do not want to record anywhere. I just want to show the user if the sound caught by the microphone is louder than the predetermined threshold or not.
Say, if the sound falls below 2 decibels, it should show βlowβ in red canvas. As soon as the sound becomes louder and passes 2 decibel thresholds, the canvas should turn green and show a "high" message.
Is it possible to use MediaRecorder or to use the AudioRecorder class. And how to do it.
Thanks in advance
source share