SraVaani 1.0 for Core ML
SraVaani 1.0 by ARTPARK at the Indian Institute of Science (IISc), Bengaluru, converted to Core ML for Apple Silicon Macs. It turns speech in Indian languages and English into text, with the encoder on the Neural Engine.
The model, its training data and its full results are the authors' work. They are described on the original model card and in Pulikodan et al., "SraVaani 1.0: Scaling Inclusive Speech Recognition for Indic Languages", arXiv:2608.08235. If you use this build, cite that paper.
Files
SraVaaniEncoder.mlmodelc: the FastConformer encoder with the joint network's encoder projection. Two functions share one set of weights:window16takes 1,600 mel frames (16 s) andwindow30takes 3,000 (30 s).SraVaaniDecoder.mlmodelc: one step of the TDT decoder, the LSTM prediction network and the joint network.tokenizer.model: the authors' SentencePiece tokenizer, unchanged.config.json: the audio features, shapes and token ids described below.manifest.json: the size in bytes of every model file.LICENSE: the MIT License.
Usage
Download:
hf download spashii/SraVaani-1.0-CoreML --local-dir SraVaani-1.0-CoreML
Load on macOS 15 or later:
import CoreML
let encoderConfig = MLModelConfiguration()
encoderConfig.computeUnits = .cpuAndNeuralEngine
encoderConfig.functionName = "window30"
let encoder = try MLModel(contentsOf: folder.appending(path: "SraVaaniEncoder.mlmodelc"),
configuration: encoderConfig)
let decoderConfig = MLModelConfiguration()
decoderConfig.computeUnits = .cpuOnly
let decoder = try MLModel(contentsOf: folder.appending(path: "SraVaaniDecoder.mlmodelc"),
configuration: decoderConfig)
The encoder takes 16 kHz mono audio as 128 log-mel bands every 10 ms, computed as the authors' ONNX export computes them: a 512-point FFT of 25 ms periodic Hann frames without centring, librosa's Slaney mel scale, the natural log with a floor of 2^-24, then each band normalised to zero mean and unit variance over the clip. Pad the bands to the window and pass the real frame count as length. It returns one 640-value frame per 80 ms.
The decoder takes one encoder frame, the last token and the LSTM state. Its 5,006 logits are 5,001 tokens, where 5000 is blank, followed by 5 durations of 0 to 4 frames. Emit the token unless it is blank, then move ahead by the duration.
How it was converted
The authors publish an ONNX export of the model. Its network was rebuilt in PyTorch with every weight taken from the ONNX file unchanged, then converted with coremltools 9.0 and PyTorch 2.7.0 to an ML Program stored as 16-bit floats, the precision the authors publish, and compiled on macOS. About 99.6% of the encoder's work runs on the Neural Engine. The scripts and the exact versions used are in conversion.
Accuracy
Measured on Apple Silicon through these Core ML files, on 30 clips per language from the FLEURS test set:
| Language | This build | Authors' ONNX export, same clips | Original card, full test set |
|---|---|---|---|
| Telugu | CER 10.2, WER 26.3 | CER 10.3 | WER 23.1 |
| Hindi | WER 15.5 | WER 14.4 | WER 10.9 |
| English | WER 18.8 | not measured | WER 14.8 on Vaani |
Thirty clips is a small sample, so read a difference of a point or two as noise. For the other languages, see the original card.
Used by
Dictate, dictation and call recording that runs on the Mac, uses this build for Telugu, Bengali, Gujarati, Kannada, Malayalam, Marathi, Punjabi, Assamese, Nepali, Sindhi and Sanskrit.
License
MIT, as the original model. Copyright (c) 2026 ARTPARK-IISc. See LICENSE.
- Downloads last month
- 22
Model tree for spashii/SraVaani-1.0-CoreML
Base model
ARTPARK-IISc/SraVaani-1.0