DeepAffects - JavaScript client for DeepAffects API
For Node.js
npm install deep-affects --save
npm install SEERNET/deepaffects-node --save
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.
DeepAffects API authenticates all the api requests via API Key.
For API key registration and setup, checkout our quickstart guide
- Type: API key
- API key parameter name: apikey
- Location: URL query string
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);
All URIs are relative to BaseURL
Class | Method | HTTP request | Description |
---|---|---|---|
DeepAffects.DenoiseApi | asyncDenoiseAudio | POST /audio/generic/api/v1/async/denoise | Denoise an audio file |
DeepAffects.DenoiseApi | syncDenoiseAudio | POST /audio/generic/api/v1/sync/denoise | Denoise an audio file |
DeepAffects.DiarizeApiV2 | asyncDiarizeAudio | POST /audio/generic/api/v2/async/diarize | Diarize an audio file |
DeepAffects.DiarizeApi | asyncDiarizeAudio | POST /audio/generic/api/v1/async/diarize | Diarize an audio file (Legacy) |
DeepAffects.DiarizeApi | syncDiarizeAudio | POST /audio/generic/api/v1/sync/diarize | Diarize an audio file (Legacy) |
DeepAffects.EllipsisApi | asyncIsDepressed | POST /audio/custom/ellipsis/api/v1/async/is_depressed | Find if a person is depressed from audio. |
DeepAffects.EllipsisApi | syncIsDepressed | POST /audio/custom/ellipsis/api/v1/sync/is_depressed | Find if a person is depressed from audio. |
DeepAffects.EmotionApi | asyncRecogniseEmotion | POST /audio/generic/api/v2/async/recognise_emotion | Find emotion in an audio file |
DeepAffects.EmotionApi | syncRecogniseEmotion | POST /audio/generic/api/v2/sync/recognise_emotion | Find emotion in an audio file |
DeepAffects.FeaturizeApi | asyncFeaturizeAudio | POST /audio/generic/api/v1/async/featurize | featurize an audio file |
DeepAffects.FeaturizeApi | syncFeaturizeAudio | POST /audio/generic/api/v1/sync/featurize | featurize an audio file |
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.