Skip to main content

Audio Quality Estimation: get result

GET 

/api/technology/audio-quality-estimation/:task_id

Retrieve the result of an Audio Quality Estimation 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 Audio Quality Estimation 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 Audio Quality Estimation task.

    channels

    object[]

    required

  • Array [

  • channel_number Channel Number (integer)required

    Channel number (0-base indexed).

    pesq_estimation

    object

    required

    Estimation of Perceptual Evaluation of Speech Quality (PESQ). Higher values mean better quality for human listeners.

    anyOf

    number

    Possible values: >= -0.5 and <= 4.5

    signal_noise_ratio

    object

    required

    Signal-to-noise ratio in decibels based on waveform distribution. Positive values mean the signal in the audio is stronger than noise.

    anyOf

    number

    audio_length

    object

    required

    Length of audio in seconds.

    anyOf

    number

    max_amplitude

    object

    required

    Maximum amplitude of the signal. The value is a number in the interval [-1, 1]. Typically the value is positive.

    anyOf

    number

    Possible values: >= -1 and <= 1

    min_amplitude

    object

    required

    Minimum amplitude of the signal. The value is a number in the interval [-1, 1]. Typically the value is negative.

    anyOf

    number

    Possible values: >= -1 and <= 1

    peak_amplitude

    object

    required

    Maximum absolute value of the signal based on maximum and minimum amplitude. E.g., if min_amplitude = -0.9 and max_amplitude = 0.8, then peak_amplitude = 0.9.

    anyOf

    number

    Possible values: <= 1

    mean_amplitude

    object

    required

    The mean value of all sample amplitudes (also called DC offset). A non-zero value, caused for example by a bad microphone, can indicate a possible distortion of the signal, such as signal clipping.

    anyOf

    number

    Possible values: >= -1 and <= 1

    sampling_rate

    object

    required

    Sampling rate of the audio in hertz, i.e., the number of samples per second. Higher values typically mean better audio quality. (This does not apply to files artificially re-sampled to higher sampling rates.)

    anyOf

    integer

    Possible values: > 0

  • ]

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