Open luc0 opened 9 years ago
I get the answer, it's done via:
cordova plugin add https://github.com/Cellules/cordova-audiofrequency.git
sorry, I am a little newbie in this area! Another question, is there any way to get the amplitud of the wave?, because I want to draw it in real-time. Thanks!
This plugin is not build for that use but you can adapt it easily to do what you want.
If you look at the native code of each platform, it process a Fast Fourier Transform (FFT) operation which return the signal in a frequency domaine (array of amplitude for each frequency values). Then the plugin simply returns the frequency value with the highest amplitude value.
In your case, if you want to draw the wave, you need to return the whole array of values.
Depending of what you need, time domaine or frequency domaine, you don't need the FFT transformation and just have to return the microphone measurements (time domaine).
Thanks. I am not good with Java, but I'll give it a try to change it
I want to give it a try, but I can't install it in console by:
it returns 404 not found. I have cordova 4.2.0