etabard / Cordova-Mic-Volume

[Fork Oo longer maintained] Phonegap plugin for reading ambient noise level through microphone. (IOS / Android)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fork no longer maintained

micVolume

WARNING : this plugin works in that it compiles and reads mic data, but the data read is difficult to interpret. This plugin should therefore not be treated as done, but rather a work in progress that still needs a fair amount of progress.

Phonegap plugin for reading ambient noise level through microphone.

Supported platforms

Android

iOS

Using

Add to your build flow : cordova plugin add https://github.com/shukriadams/micVolume.git

audioPoll.start(succesCallback, errorCallback);

audioPoll.read(function(reading){
    console.log(reading.volume);
}, errorCallback);

audioPoll.stop(succesCallback, errorCallback);

In all cases, errorCallback passes back either an error message string or object with an error message string in it.

About

[Fork Oo longer maintained] Phonegap plugin for reading ambient noise level through microphone. (IOS / Android)


Languages

Language:Objective-C 46.2%Language:Java 39.8%Language:JavaScript 14.0%