Language Detection (batch)
Returnsapplication/json. Every field is always present.
Try it
Response
Response
What you can configure
Audio formats
Accepted extensions:.aac, .aiff, .flac, .mov, .mp3, .mp4, .ogg, .opus, .wav, .webm.
Maximum file size is 100 MB. Empty files are rejected with 400.
Behavior and constraints
Only the first 30 seconds of audio are analyzed. Longer files are accepted and the remainder is ignored, soduration_ms can exceed the analyzed span. Aim for at least 3 to 5 seconds of clear speech at the start.
Audio in a language outside the supported set returns the closest supported match, usually with low confidence.
Acting on the confidence score
confidence near 1.0 means the model committed to an answer. Near 0.0 means it could not. There is no universally correct threshold; set one against how much misclassification the application can absorb.