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. |
AsyncResponse asyncIsDepressed(body)
Find if a person is depressed from audio.
Find if a person is depressed from audio.
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);
Name | Type | Description | Notes |
---|---|---|---|
body | Audio | Audio object that needs to be featurized. |
- Content-Type: application/json
- Accept: application/json
'Boolean' syncIsDepressed(body)
Find if a person is depressed from audio.
Find if a person is depressed from audio.
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);
Name | Type | Description | Notes |
---|---|---|---|
body | Audio | Audio object that needs to be featurized. |
'Boolean'
- Content-Type: application/json
- Accept: application/json