Plugin that create a csv file and store the output of opensmile tool for audio recordings.
This plugin can be used to get live output from oopensmile tool. It will create a csv file and store it in the specified location in the device.
Create a new Cordova Project
$ cordova create opensmile com.example.opensmileapp OpenSmile
Install the plugin
$ cd /to/project/folder/
$ cordova plugin add https://github.com/RADAR-base/RADAR-Cordova-OpenSmile-Plugin.git
Edit www/js/index.js
and add the following code inside onDeviceReady
var success = function(message) {
alert(message);
}
var failure = function() {
alert("Error calling OpenSmile Plugin");
}
opensmile.start(fname, fpath, success, failure);
Params:
fname: name of the csv file to store opensmile output.
fpath: path of the csv file to store in the device.
success: success callback.
failure: failure callback.
opensmile.stop("Stop", success, failure);
Params:
success: success callback.
failure: failure callback.
Install Android platform
cordova platform add android
Run the code
cordova run
For more information on setting up Cordova see the documentation
For more info on plugins see the Plugin Development Guide