AudioFrequency

Cellules0.0.11
platforms: ios,android,browser
$ cordova plugin add com.cellules.cordova.audiofrequency

com.cellules.cordova.audiofrequency

This plugin captures the device's audio input stream and analyses it to return the maximum frequency.

It adds the following window event:

  • audiofrequency

Installation

cordova plugin add com.cellules.cordova.audiofrequency

Supported Platforms

  • iOS
  • Android

Example

window.addEventListener("audiofrequency", onAudiofrequency, false);

function onAudiofrequency(e) {
    console.log("Frequency: " + e.frequency + " Hz");
}