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 | Mandatory | Description |
|---|---|---|---|
| file | String | Yes | 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 | Mandatory | Description |
|---|---|---|---|
| data | Object | Yes | Response wrapper object. |
| data.azure | Object | Yes | Detected language details from Azure. |
| data.azure.language | String | No | Detected language locale code. |
| data.azure.confidence | Number | No | Detection confidence level (0.0 to 1.0). |