Language Detection (batch)
Returnsapplication/json. Every field is always present.
Try it
Output
Response
Response
What you can configure
Audio formats
Accepted extensions include.mp3, .wav, .flac, .m4a, .mp4, .ogg, .opus, .webm, .aac, .aiff, and .mov, plus 85 others.
All 96 accepted extensions
All 96 accepted extensions
.3g2, .3ga, .3gp, .3gpp, .8svx, .aa3, .aac, .ac3, .act, .adts, .aif,
.aifc, .aiff, .alac, .amb, .amr, .ape, .asf, .at3, .au, .avi, .avr,
.awb, .bwf, .c2, .caf, .dss, .dts, .dtshd, .eac3, .ec3, .f4a, .f4b,
.flac, .flv, .gsm, .iff, .m2a, .m2ts, .m4a, .m4b, .m4r, .m4v, .mka,
.mkv, .mlp, .mmf, .mov, .mp+, .mp1, .mp2, .mp3, .mp4, .mpa, .mpc, .mpeg,
.mpg, .mpga, .mpp, .mts, .mxf, .nist, .oga, .ogg, .ogx, .oma, .omg,
.opus, .paf, .pvf, .qcp, .ra, .rf64, .rka, .rm, .rmvb, .sf, .shn, .snd,
.sph, .svx, .tak, .thd, .ts, .tta, .vob, .voc, .vqf, .w64, .wav,
.wave, .weba, .webm, .wma, .wmv, .wv400.
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.