All URIs are relative to https://localhost
Method | HTTP request | Description |
---|---|---|
asyncDiarizeAudio | POST /audio/generic/api/v2/async/diarize | Diarize an audio file |
AsyncResponse asyncDiarizeAudio(body)
Diarize an audio file
Diarize an audio file.
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.DiarizeApiV2();
var body = DeepAffects.DiarizeAudio.fromFile("/path/to/file"); // DiarizeAudio | Audio object that needs to be diarized.
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.asyncDiarizeAudio(body, webhook, callback);
Name | Type | Description | Notes |
---|---|---|---|
body | DiarizeAudio | Audio object that needs to be diarized. |
- Content-Type: application/json
- Accept: application/json