2.0.3 • Published 7 years ago

cordova-plugin-opensmile v2.0.3

Weekly downloads
5
License
ISC
Repository
github
Last release
7 years ago

Cordova opensmile Plugin

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.

Using

Create a new Cordova Project

$ cordova create opensmile com.example.opensmileapp OpenSmile

Install the plugin

$ cd hello
$ cordova plugin add https://github.com/nithinth7/plugin-opensmile.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");
    }

To start opensmile

    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.

To stop opensmile

	opensmile.stop("Stop", success, failure);
Params:
	success: success callback.
	failure: failure callback.
	

Install Android platform

cordova platform add android

Run the code

cordova run 

More Info

For more information on setting up Cordova see the documentation

For more info on plugins see the Plugin Development Guide