Skip to content

Latest commit

 

History

History
110 lines (75 loc) · 2.87 KB

EllipsisApi.md

File metadata and controls

110 lines (75 loc) · 2.87 KB

DeepAffects.EllipsisApi

All URIs are relative to https://localhost

Method HTTP request Description
asyncIsDepressed POST /audio/custom/ellipsis/api/v1/async/is_depressed Find if a person is depressed from audio.
syncIsDepressed POST /audio/custom/ellipsis/api/v1/sync/is_depressed Find if a person is depressed from audio.

asyncIsDepressed

AsyncResponse asyncIsDepressed(body)

Find if a person is depressed from audio.

Find if a person is depressed from audio.

Example

var DeepAffects = require('deep-affects');
var defaultClient = DeepAffects.ApiClient.default;

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

var apiInstance = new DeepAffects.EllipsisApi();

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

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

Parameters

Name Type Description Notes
body Audio Audio object that needs to be featurized.

Return type

AsyncResponse

Authorization

UserSecurity

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

syncIsDepressed

'Boolean' syncIsDepressed(body)

Find if a person is depressed from audio.

Find if a person is depressed from audio.

Example

var DeepAffects = require('deep-affects');
var defaultClient = DeepAffects.ApiClient.default;

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

var apiInstance = new DeepAffects.EllipsisApi();

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

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.syncIsDepressed(body, callback);

Parameters

Name Type Description Notes
body Audio Audio object that needs to be featurized.

Return type

'Boolean'

Authorization

UserSecurity

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json