Skip to main content

Language Identification: get result

GET 

/api/technology/language-identification/:task_id

Retrieve the result of a Language Identification task.

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.

    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.

Responses

Result response of Language Identification 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

    object

    required

    task_id uuidrequired
    state TaskInfoState (string)required

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

    result

    object

    anyOf

    Result of Language Identification task.

    channels

    object[]

    required

  • Array [

  • channel_number Channel Number (integer)required

    Channel number (0-base indexed).

    speech_length Speech Length (number)required

    Length of speech in seconds used for identification.

    scores

    object[]

    required

    The list of Language Identification scores for individual languages or language groups. All probability values for languages and groups should sum to 1. The probabilities of individual languages within a language group should sum to the global group score. Due to conversion errors, the actual sums can differ from 1 or from the group score by a very small fraction.

  • Array [

  • anyOf

    The Language Identification score for a language group.

    identifier Identifier (string)required
    identifier_type Identifier Type (string)required

    Information whether the score belongs to a single language or a language group.

    probability floatrequired

    The probability of the media file containing the given language or the sum of probabilities for the elements of the language group. Probability values are rounded to 5 decimal places.

    languages

    object[]

    required

    The list of Language Identification scores for individual languages within the language group.

  • Array [

  • identifier Identifier (string)required
    identifier_type Identifier Type (string)required

    Information whether the score belongs to a single language or a language group.

    probability floatrequired

    The probability of the media file containing the given language or the sum of probabilities for the elements of the language group. Probability values are rounded to 5 decimal places.

  • ]

  • ]

  • ]

  • error

    object

    anyOf

    Result schema for a failed or rejected task.

    type TaskErrorType (string)required

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

    Machine-readable error type.

    message Message (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

  • ]

  • message Message (string)required

    Human-readable summary of the error.

    type Type (string)required

    Machine-readable error type.

    context

    object

    Optional key-value object with additional context

    property name*

    object

    anyOf

    string

  • ]

Loading...