Sangam (Core ML)

Sangam is a speech recognition model for Hindi and Hinglish (Hindi mixed with English), for on-device dictation on Apple silicon Macs. It writes Hindi words in Hindi letters and English words in Latin letters.

These are the compiled Core ML files that the Saymore app for Mac downloads when Hindi is picked. Weights: n3-slang1, 16-bit, converted on 26 Nov 2026 with coremltools 9.0.

In short: 8.85% word error on the Open ASR Leaderboard's public Hindi test set (753 clips), measured by us with the leaderboard's own scorer, running these exact files on the Apple Neural Engine. The original PyTorch model scores 8.86% on the same clips, so the Core ML conversion costs nothing measurable. 234 MB on disk, about 60 ms per clip for the encoder on an M4 Max.

Files

File What it is Input Output Size
SangamEncoder.mlmodelc Encoder: 17-layer Conformer, 512 wide, relative-position attention, with the joiner's encoder projection folded in mel [1, 80, 1501] (15 s window), length [1] = how many mel frames are real f [1, 376, 640], f_len [1] 225 MB
SangamDecoder.mlmodelc Prediction network: one LSTM step (640), with the joiner's prediction projection folded in token [1, 1], h, c [1, 1, 640] g [1, 640], h_out, c_out 7.8 MB
SangamJoiner.mlmodelc Joiner f [1, 640], g [1, 640] logits [1, 641] 0.8 MB

About 115 million parameters. 641 output pieces: 256 Hindi word pieces, 384 Latin word pieces, and blank (id 640). The mel front end and the token list live in the app; see "Using the files" below.

Results

All figures below were measured by us, on one machine (M4 Max, 36 GB, macOS 27), one pass each. This is not a leaderboard submission.

  • Test set: Monsoon hi-IN public (Voice Arena, CC BY 4.0), the Hindi test set of the Open ASR Leaderboard. 753 clips, 1.33 hours, 468 speakers, longest clip 15.0 s.
  • Scoring: the leaderboard's own scorer, voi_oiwer 0.1.4 (OIWER: each stretch of the reference carries a list of accepted spellings, in Hindi letters, English letters or Roman). Every clip is scored with oiwer(text, lattice, "hindi"); the figure is summed errors over summed reference words.
  • Same method for every row: the model's raw output, greedy decoding, no language model, no text clean-up afterwards.

These files, by chip

What ran Chip Word error (OIWER) Errors / reference words Same text as PyTorch Encoder time per clip
Original PyTorch model (n3-slang1, 32-bit) processor 8.86% 1209 / 13,653 reference not timed
These files Neural Engine 8.85% 1208 / 13,651 716 of 753 clips 59 ms
These files graphics chip 8.82% 1204 / 13,652 740 of 753 clips 19 ms
These files processor only 8.80% 1201 / 13,652 736 of 753 clips 64 ms

The four figures are within 8 errors of each other out of about 1,200. That is chance; read it as "the same", not as one chip being better.

Where the text differs from PyTorch it is a word or two per clip (50 words out of 13,414 on the Neural Engine, 16 on the graphics chip): spelling variants, small grammar words, and now and then a different word. The changes go both ways, some fixing the original's mistake and some adding one.

The whole 1.33 hours ran in 56 s on the Neural Engine and 26 s on the graphics chip, including a Python mel front end and decode loop.

Against other models, same clips, same scorer

Model Size Runs as Word error (OIWER)
AI4Bharat IndicConformer Hindi, CTC output (the model family Sangam was retrained from) not measured 8-bit ONNX, sherpa-onnx 15.40%
SraVaani 1.0 (ARTPARK-IISc) 430 M parameters PyTorch 11.11%
Sangam n3-slang1, Android pack about 115 M parameters, 205 MB 8-bit ONNX, sherpa-onnx 8.91%
Sangam n3-slang1, original about 115 M parameters PyTorch, 32-bit 8.86%
Sangam n3-slang1, these Core ML files about 115 M parameters, 234 MB Core ML 16-bit, Neural Engine 8.85%

We ran each of these ourselves on the same 753 audio files with the same scorer. The leaderboard's own published figures for other models are not quoted here, because we did not produce them and its setup may differ from ours.

Does the conversion itself change anything?

Checked on the sibling weights n3 (same architecture, before the slang fine-tune; PyTorch 8.83%):

Core ML variant Same text as PyTorch (753 clips) Word error (OIWER)
Full precision (32-bit), graphics chip 753 of 753 8.83%
16-bit, graphics chip 743 of 753 8.81%
16-bit, Neural Engine 724 of 753 8.75%

So the conversion is exact at full precision, and the small differences at 16-bit come from 16-bit arithmetic and the Neural Engine, not from the conversion. A repeat of the Neural Engine run on 21 clips gave the same output three times out of three: the differences are steady, not random.

Size, speed, memory

On disk 234 MB (16-bit). Full precision would be 467 MB; 8-bit weights 117 MB (not published).
Encoder, one clip in the 15 s window 59 ms Neural Engine, 19 ms graphics chip, 64 ms processor
Decode loop about 10 ms per clip (decoder and joiner on the processor)
First load 3 to 7 s on the Neural Engine (it compiles once), about 1 s elsewhere
Memory added to the process about 40 to 55 MB on the Neural Engine, about 375 MB on the graphics chip. The Neural Engine figure leaves out what it holds on its own side, so treat it as a floor.

Using the files

The three files do not include the audio front end or the decode loop.

Front end (matches NeMo's AudioToMelSpectrogramPreprocessor): 16 kHz mono; pre-emphasis 0.97; 25 ms Hann window, 10 ms step, 512-point FFT; 80 mel bands; log; then each band normalised to zero mean and unit variance over the clip's own frames. Zero-pad to 1501 frames and pass the real frame count as length. The encoder ignores the padding.

Greedy decoding:

h, c = zeros;  g, h, c = Decoder(token = 640 (blank), h, c)
for t in 0 ..< f_len:
    repeat at most 4 times:
        k = argmax Joiner(f[t], g)
        if k == 640: break            # blank: move to the next 40 ms slice
        emit k
        g, h, c = Decoder(token = k, h, c)

Join the emitted pieces and replace ▁ with a space. Audio longer than 15 s has to be cut into windows.

Not tested

  • Audio longer than 15 s, noisy recordings, and other test sets. The figures above are for one public set of read and spoken Hindi.
  • A front end other than NeMo's. The tests used NeMo's own mel code in Python; a Swift front end gives slightly different numbers.
  • Other Macs, iPhone, battery and heat.
  • 8-bit Core ML on the 753 clips (on 21 clips it changed one word).
  • Each figure is from a single pass.

Credits

  • Base model: AI4Bharat IndicConformer Hindi (MIT).
  • Training speech: HiACC (CC BY 4.0) and IndicVoices, Hindi part, by AI4Bharat (CC BY 4.0).
  • Test set: Monsoon hi-IN public by Voice Arena (CC BY 4.0). Scorer: voi_oiwer by Josh Talks.

Known limits

  • Pure English is recognised poorly; use an English model for that.
  • Tested on a small number of voices beyond the public test set.
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Dataset used to train talkxo/sangam-coreml