Skip to main content

Speech Translation: get result

GET 

/api/technology/speech-translation-whisper-enhanced/:task_id

Retrieve the result of an Enhanced Speech Translation Built on Whisper 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 an Enhanced Speech Translation Built on Whisper 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 an Enhanced Speech Translation Built on Whisper task.

    one_best

    object

    required

    One-best result of an Enhanced Speech Translation Built on Whisper.

    segments

    object[]

    required

  • Array [

  • channel_number Channel Number (integer)required

    Channel number (0-base indexed).

    start_time Start Time (number)required

    Start time of the segment.

    end_time End Time (number)required

    End time of the segment.

    language Language (string)required

    Language of the translation.

    text Text (string)required

    Translation of the segment.

    source_language Source Language (string)required

    Source language used during translation.

    detected_source_language Detected Source Language (string)required

    Actually detected source language of the segment. This may be different from the source_language in two cases:

    1. User specifies a source_language but the technology detects another language.
    2. User does not have a license for detected_source_language, and the closest licensed language is used instead.
  • ]

  • 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...