About this endpoint
What it does
Detects the language of an uploaded audio file. The request sends an audio file binary, and the response returns a JSON object with detected language information under data.azure.
Request Body
| Parameter | Type | Description |
|---|---|---|
| file | Binary | Audio file binary (WAV, MP3, etc.). |
Response
Returns a JSON object with a data object field. Inside data, the azure object contains the detected language details.
| Parameter | Type | Description |
|---|---|---|
| data | Object | Response wrapper object. |
| data.azure | Object | Detected language details from Azure. |
| data.azure.language | String | Detected language locale code. |
| data.azure.confidence | Number | Detection confidence level (0.0 to 1.0). |



