Response Payload

The Audio Language Detection compute response returns predicted language codes, associated scripts, and confidence scores.

Response Examples

200 OK — Language Detected
{
  "pipelineResponse": [
    {
      "taskType": "audio-lang-detection",
      "config": null,
      "output": [
        {
          "audio": {
            "audioContent": null,
            "audioUri": null
          },
          "langPrediction": [
            {
              "langCode": "hi",
              "scriptCode": "Deva",
              "langScore": 0.984
            }
          ]
        }
      ],
      "audio": null
    }
  ]
}

Response Field Breakdown

FieldTypeDescription
pipelineResponsearray<object>Array containing the results for each executed pipeline task.
output[].langPrediction[].langCodestringPredicted ISO-639 language code (e.g. hi, ta, bn).
output[].langPrediction[].scriptCodestringPrimary script associated with the predicted language (e.g. Deva, Taml).
output[].langPrediction[].langScorenumberConfidence probability score between 0.0 and 1.0.