Coder Social home page Coder Social logo

rotemjac / deepaffects-node Goto Github PK

View Code? Open in Web Editor NEW

This project forked from seernet/deepaffects-node

1.0 2.0 0.0 4.45 MB

Node wrapper for DeepAffects API

Home Page: https://developers.deepaffects.com

License: MIT License

JavaScript 100.00%

deepaffects-node's Introduction

deepaffects-node

Build Status npm version

DeepAffects - JavaScript client for DeepAffects API

Installation

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

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/v1/async/recognise_emotion Find emotion in an audio file
DeepAffects.EmotionApi syncRecogniseEmotion POST /audio/generic/api/v1/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

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.

deepaffects-node's People

Contributors

sushant-hiray avatar venkatesh-1729 avatar rotemjac avatar

Stargazers

Tal Tahar avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.