This plugin captures the device's audio input stream and analyses it to return the maximum frequency.
It adds the following window
event:
cordova plugin add com.cellules.cordova.audiofrequency
window.addEventListener("audiofrequency", onAudiofrequency, false);
function onAudiofrequency(e) {
console.log("Frequency: " + e.frequency + " Hz");
}