MMS-LID 1024 Core ML: Detect 1024 Languages on iOS
1 min readupdated
Conversion of the popular language recognition model facebook/mms-lid-1024 into the Core ML format to run directly on Apple devices running iOS 18 and newer. The model uses 8-bit k-means quantization (palletization) and joint INT8 LUT optimization, striking a balance between file size, processing speed, and accuracy. The model outputs logits to identify one of 1024 languages using ISO 639-3 codes. This development is useful for iOS mobile developers who need built-in offline audio analysis.
Key features
- Support for 1024 languages based on Facebook's classifier
- Optimized for Core ML and iOS 18+ with joint INT8 LUT
- Balanced size and performance on mobile hardware
- Includes mapping files
labels.jsonandmms_lid_id2label.json
What you can do
- Build speech language recognition into an iOS or macOS mobile app
- Create an offline tool for automatic language identification of audio recordings on-device
- Use the ready-to-use
mms_lid_joint.mlpackagepackage in Swift projects
Example
To use the model, feed it 10 seconds of mono audio at 16 kHz, take the argmax of the output logits, and look up the corresponding language code in labels.json.
Read more
DetailsInput: exactly 10 seconds of mono audio (160,000 samples at 16 kHz)
Output: logits of size (1, 1024)
License: CC-BY-NC-4.0 (inherited from the base model)








Comments