Skip to content

Latest commit

 

History

History
116 lines (80 loc) · 3.47 KB

DiarizeApi.md

File metadata and controls

116 lines (80 loc) · 3.47 KB

deepaffects.DiarizeApi

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

async_diarize_audio

AsyncResponse async_diarize_audio(body, webhook, request_id=request_id)

Diarize an audio file

Diarize an audio file.

Example

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)

Parameters

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]

Return type

AsyncResponse

Authorization

UserSecurity

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

sync_diarize_audio

list[Audio] sync_diarize_audio(body)

Diarize an audio file

Diarize an audio file.

Example

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)

Parameters

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

Return type

list[Audio]

Authorization

UserSecurity

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]