Spoken language identification models in ONNX
Small spoken language identification models in ONNX, converted (or copied, where the authors already publish ONNX) so they run in the browser with onnxruntime-web. They are used in the Realtime Language Detection Demo, which shows each model's answer after 20 ms, 40 ms, ... up to 2 s of audio.
Each folder holds one model: the ONNX files, labels.json (labels in output order with ISO codes), a README with the input and output format and how it was checked against the original, and the original license. All credit goes to the original authors.
Feature extraction is inside the graphs, so the models take raw 16 kHz audio. model.onnx is fp32 and gives the same results as the original; model_fp16.onnx stores the weights in fp16 (fp32 math) and is what the demo downloads. int8 versions were tried and not kept, because they changed the answers too often.
The folder silero-vad/ holds Silero VAD v6.2 (MIT, by the Silero team), which the demo uses to find the start of speech.
Not included (the demo or the benchmark uses them, but a copy cannot be shared here):
- NVIDIA AmberNet: NVIDIA NGC Terms of Use, which do not allow redistribution; the demo loads it from that repo
- ml-for-speech/language-classification: no license
- radioduran/indic-language-identification: no license, and its classifier head cannot be loaded without code that is not published
Prepared by
Kawshik Kumar Paul
Senior Software Engineer | Researcher
Department of Computer Science and Engineering (CSE)
Bangladesh University of Engineering and Technology (BUET)
Email: kawshikbuet17@gmail.com