All URIs are relative to https://localhost
Method | HTTP request | Description |
---|---|---|
async_diarize_audio | POST /api/v1/async/diarize | Diarize an audio file |
sync_diarize_audio | POST /api/v1/sync/diarize | Diarize an audio file |
AsyncResponse async_diarize_audio(body, webhook, request_id=request_id)
Diarize an audio file
Diarize an audio file.
from __future__ import print_function
import time
import deepaffects
from deepaffects.rest import ApiException
from pprint import pprint
# Configure API key authorization: UserSecurity
deepaffects.configuration.api_key['apikey'] = 'YOUR_API_KEY'
# create an instance of the API class
api_instance = deepaffects.DiarizeApi()
body = deepaffects.DiarizeAudio() # DiarizeAudio | Audio object that needs to be diarized.
webhook = 'webhook_example' # str | The webhook url where result from async resource is posted
request_id = 'request_id_example' # str | Unique identifier for the request (optional)
try:
# Diarize an audio file
api_response = api_instance.async_diarize_audio(body, webhook, request_id=request_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling DiarizeApi->async_diarize_audio: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | DiarizeAudio | Audio object that needs to be diarized. | |
webhook | str | The webhook url where result from async resource is posted | |
request_id | str | Unique identifier for the request | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Audio] sync_diarize_audio(body)
Diarize an audio file
Diarize an audio file.
from __future__ import print_function
import time
import deepaffects
from deepaffects.rest import ApiException
from pprint import pprint
# Configure API key authorization: UserSecurity
deepaffects.configuration.api_key['apikey'] = 'YOUR_API_KEY'
# create an instance of the API class
api_instance = deepaffects.DiarizeApi()
body = deepaffects.DiarizeAudio() # DiarizeAudio | Audio object that needs to be diarized.
try:
# Diarize an audio file
api_response = api_instance.sync_diarize_audio(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling DiarizeApi->sync_diarize_audio: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | DiarizeAudio | Audio object that needs to be diarized. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]