HTML5 and decibel counter

Is there anyway using HTML5 and Javascript to capture the sound and get its decibel value? Can this be done on mobile devices using PhoneGap?

+4
source share
2 answers

You cannot listen to audio through a browser unless you use something like Flash. Thus, PhoneGap MAY work on devices other than iPhone (without Flash support).

Despite the fact that PhoneGap does the Media API , you cannot just listen to the Mic input, instead it will start audio capture and give you access to the recorded audio.

However, you could write your own PhoneGap Plugin , which will provide you with this functionality.

Cm.

And as I mentioned above, you need to write your own PhoneGap plugin to use them.

+4
source

DecibelMeter: Monitoring dB Levels Using HTML5 Audio API https://github.com/jasonpecor/DecibelMeter

0
source

Source: https://habr.com/ru/post/1413452/


All Articles