Skip to content

Phonegap plugin for reading ambient noise level through microphone.

Notifications You must be signed in to change notification settings

shukriadams/micVolume

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Coming platforms

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

Phonegap plugin for reading ambient noise level through microphone.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published