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
| Field | Type | Description |
|---|---|---|
pipelineResponse | array<object> | Array containing the results for each executed pipeline task. |
output[].langPrediction[].langCode | string | Predicted ISO-639 language code (e.g. hi, ta, bn). |
output[].langPrediction[].scriptCode | string | Primary script associated with the predicted language (e.g. Deva, Taml). |
output[].langPrediction[].langScore | number | Confidence probability score between 0.0 and 1.0. |