Is there anyway using HTML5 and Javascript to capture audio and get the live Decibel value of it? Can this be done on mobile devices using PhoneGap?
Asked
Active
Viewed 6,595 times
2 Answers
4
You can't listen for audio through the browser itself unless you're using something like Flash. So PhoneGap COULD potentially work in devices other than the iPhone (no Flash support).
Eventhough PhoneGap does provide a Media API you cant just listen for the Mic input instead it will launch the audio capture device and give you a way to access the recorded Audio.
You could however write your own PhoneGap Plugin that would give you this functionality.
See
- http://mobileorchard.com/tutorial-detecting-when-a-user-blows-into-the-mic/ (XCode)
- Android decibel meter (Android)
And as I mentioned above you'd need to write your own PhoneGap Plugin to use these.
1
DecibelMeter: Monitor dB Levels Using HTML5 Audio API https://github.com/jasonpecor/DecibelMeter

Antony Quinn
- 181
- 1
- 8