0.1.7 • Published 5 years ago

deep-affects v0.1.7

Weekly downloads
1
License
Unlicense
Repository
-
Last release
5 years ago

deepaffects-node

Build Status npm version

DeepAffects - JavaScript client for DeepAffects API

Installation

For Node.js

npm

npm install deep-affects --save

git

npm install SEERNET/deepaffects-node --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Documentation for Authorization

DeepAffects API authenticates all the api requests via API Key.

For API key registration and setup, checkout our quickstart guide

UserSecurity

  • Type: API key
  • API key parameter name: apikey
  • Location: URL query string

Getting Started

Please follow the installation instruction and execute the following JS code:

var DeepAffects = require('deep-affects');

var defaultClient = DeepAffects.ApiClient.instance;

// Configure API key authorization: UserSecurity
var UserSecurity = defaultClient.authentications['UserSecurity'];
UserSecurity.apiKey = "YOUR API KEY";

var api = new DeepAffects.DenoiseApi();

var body = DeepAffects.Audio.fromFile("/path/to/file"); // {Audio} Audio object that needs to be denoised.

webhook = "http://your/webhook/"
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.syncDenoiseAudio(body, callback);
api.asyncDenoiseAudio(body, webhook, callback);

Documentation for API Endpoints

All URIs are relative to BaseURL

ClassMethodHTTP requestDescription
DeepAffects.DenoiseApiasyncDenoiseAudioPOST /audio/generic/api/v1/async/denoiseDenoise an audio file
DeepAffects.DenoiseApisyncDenoiseAudioPOST /audio/generic/api/v1/sync/denoiseDenoise an audio file
DeepAffects.DiarizeApiV2asyncDiarizeAudioPOST /audio/generic/api/v2/async/diarizeDiarize an audio file
DeepAffects.DiarizeApiasyncDiarizeAudioPOST /audio/generic/api/v1/async/diarizeDiarize an audio file (Legacy)
DeepAffects.DiarizeApisyncDiarizeAudioPOST /audio/generic/api/v1/sync/diarizeDiarize an audio file (Legacy)
DeepAffects.EllipsisApiasyncIsDepressedPOST /audio/custom/ellipsis/api/v1/async/is_depressedFind if a person is depressed from audio.
DeepAffects.EllipsisApisyncIsDepressedPOST /audio/custom/ellipsis/api/v1/sync/is_depressedFind if a person is depressed from audio.
DeepAffects.EmotionApiasyncRecogniseEmotionPOST /audio/generic/api/v2/async/recognise_emotionFind emotion in an audio file
DeepAffects.EmotionApisyncRecogniseEmotionPOST /audio/generic/api/v2/sync/recognise_emotionFind emotion in an audio file
DeepAffects.FeaturizeApiasyncFeaturizeAudioPOST /audio/generic/api/v1/async/featurizefeaturize an audio file
DeepAffects.FeaturizeApisyncFeaturizeAudioPOST /audio/generic/api/v1/sync/featurizefeaturize an audio file

Documentation for Models

About

DeepAffects is an emotional intelligence analysis engine that measures the effect emotional intelligence has on team dynamics, and provides emotional analytics that serve as the basis of insights to improve project management, performance and satisfaction across organizations, projects, and teams. To watch DeepAffects in action: check out DeepAffects Atlassian JIRA addon and our Github addon.

0.1.7

5 years ago

0.1.6

6 years ago

0.1.4

6 years ago

0.1.5

6 years ago

0.1.3

6 years ago

0.1.2-readme

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago