Request Payload

This sub-page helps the integrator to understand two different types of request payload, one without any additional configuration parameters, and one with additional configuration parameters.

Standard Request Payload
{
    "pipelineTasks" : [
        {
            "taskType" : "asr"
        },
        {
            "taskType": "translation"
        },
        {
            "taskType": "tts"
        }
    ],
    "pipelineRequestConfig" : {
        "pipelineId" : "xxxx8d51ae52cxxxxxxxx"
    }
}

Parameters

Field breakdown for the request payload parameters:

FieldTypeDescription
pipelineTasksarray <object>Array of task objects containing taskType (e.g. asr, translation, tts). The sequence of tasks determines pipeline execution order.
pipelineIdstringUnique pipeline ID obtained via Pipeline Search Call.
pipelineRequestConfigobjectWrapper dictionary containing pipelineId and request configuration.

Integrators want to do individual tasks

pipelineTasks array takes only one dictionary with taskType as asr

"pipelineTasks" : [
    {
        "taskType" : "asr"
    }
]

Integrators want to do combination of tasks in that order

pipelineTasks array takes two dictionaries with taskType as asr and translation in that sequence.

Requesting Server with this in the pipelineTasks parameter would mean that integrator wants to ask the server to give the configuration details where server will be able to perform ASR and Translation together by first doing ASR on the input audio, generating digital text of that audio and then also able to generate translation on the output of that ASR.

"pipelineTasks" : [
    {
        "taskType" : "asr"
    },
    {
        "taskType" : "translation"
    }
]