Skip to main content

Speaker Diarization: get result

GET 

/api/technology/speaker-diarization/:task_id

Retrieve the result of a Speaker Diarization task.

In case of a multi-channel audio on input, each channel result contains unique speaker IDs.

Request

Path Parameters

    task_id uuidrequired

    ID of the task to get result of.

Header Parameters

    x-correlation-id X-Correlation-Id

    Correlation ID is a special type of request ID which is unique over a series of requests and responses, identifying a transaction in a distributed system. Correlation ID will be generated if not provided.

    Default value:
    x-request-id X-Request-Id

    In distributed system architecture (microservices architecture) it is a unique ID of request and response combination throughout all components of a distributed system. Request ID will be generated if not provided.

    Default value:

Responses

Result response of Speaker Diarization task.

The response body contains task info in the task field. Depending on the task processing outcome, either result or error field is populated.

Schema
    task objectrequired
    task_iduuidrequired
    stateTaskInfoState (string)required

    Possible values: [pending, running, rejected, failed, done]

    result object

    Result of Speaker Diarization task.

    channels object[]required
  • Array [
  • channel_numberChannel Number (integer)required

    Channel number (0-base indexed).

    Possible values: >= 0

    speakers_countSpeakers Count (integer)required

    Number of speakers detected by Diarization.

    Possible values: >= 0

    segments object[]required

    The list of segments detected during Speaker Diarization, each containing a speaker ID and time boundaries of the segment. The list is empty if no speakers have been detected.

  • Array [
  • speaker_idSpeaker Id (integer)required

    Unique ID of the speaker within the channel.

    Possible values: >= 0

    start_timeStart Time (number)required

    Start time of the segment in seconds.

    Possible values: >= 0

    end_timeEnd Time (number)required

    End time of the segment in seconds.

    Possible values: >= 0

  • ]
  • ]
  • error object

    Result schema for a failed or rejected task.

    typeTaskErrorType (string)required

    Machine-readable error type.

    Possible values: [internal, task.validation-error]

    messageMessage (string)required

    Human-readable summary of the error.

    detail object[]

    Optional higher level of detail. It is intended for better understanding of the error or advanced error handling.

  • Array [
  • location object[]required

    Location of the error.

  • Array [
  • anyOf
    integer
  • ]
  • messageMessage (string)required

    Human-readable summary of the error.

    typeType (string)required

    Machine-readable error type.

    context object

    Optional key-value object with additional context

    property name* object
    anyOf
    string
  • ]