Sangam: Hinglish speech to text, on your device

Sangam संगम

Bol de, likh dega. Sangam turns spoken Hindi and Hinglish into text, entirely on your device. Hindi words come out in Hindi letters and English words stay in English, the way people actually type.

Sangam means a confluence, the place where two rivers meet. Here the two rivers are Hindi and English, in the same sentence.

Try it in your browser, no install, nothing leaves your device.

Made by TalkXO. This repository holds the Core ML build that runs on the Apple Neural Engine in our Mac app, Saymore.

Word error 8.85% on the Open ASR Leaderboard's public Hindi test set (753 real clips, 468 speakers), scored with the leaderboard's own scorer. Measured by us; not a leaderboard listing yet.
Size About 115 million parameters; 234 MB on disk (16-bit)
Speed About 60 ms per clip for the encoder on the Neural Engine (M4 Max). 1.33 hours of audio in 56 seconds.
Privacy Runs fully offline. No audio leaves the device.
Shipping in Saymore for Mac (this build) and Saymore for Android (an 8-bit ONNX build of Sangam 3, in internal testing on Google Play)

What it's good at

  • Hinglish, mid-sentence. "kal subah das baje meeting hai" comes out as कल सुबह दस बजे meeting है, not as all-Hindi or all-Roman text.
  • Everyday Indian speech. It learned from more than 850 hours of real speakers across India: read, spontaneous and conversational speech.
  • Gen Z words. This version has had a round of training on slang (rizz, aura, situationship, bunking and more) and on spoken abbreviations like OTP. Coverage is still growing; see "Not tested" below.
  • Small enough for a laptop or phone. About a quarter of the size of the next-best Hindi model we tested, and more accurate on the same clips.

How it compares

Same 753 audio files, same scorer, every model run by us:

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

Lower is better. We do not quote the leaderboard's published figures for other models here, because we did not produce them and its setup may differ from ours.

Inside Sangam

Listens with A 17-layer Conformer encoder, 512 wide, with relative-position attention, from AI4Bharat's IndicConformer Hindi
Writes with A transducer (RNN-T) head: one LSTM prediction network and a joiner, trained by us
Vocabulary 641 pieces: 256 Hindi word pieces, 384 Latin word pieces, and blank
Decoding Greedy, no language model
Front end 80-band log-mel at 16 kHz, 10 ms step

How it was trained

Sangam was not trained from scratch. We kept IndicConformer's listening part and retrained it, with a new writing head, on real Indian speech, in rounds. Every round was scored on the same public Hindi test set before it was kept.

Version What changed Trained on Word error
Sangam 1 New writing head on the IndicConformer encoder 71 h of real speech (IndicVoices Hindi and HiACC), on a MacBook Pro (M4 Max) 11.00%
Sangam 2 Much more real speech 759 h of IndicVoices Hindi, on one rented RTX 4090 9.12%
Sangam 3 Vaani added slice by slice; a slice was kept only if the test score improved + 90 h of Vaani, RTX 4090 8.83%
Slang round 1 (these weights) Gen Z words and abbreviations 7,854 generated clips of slang sentences, mixed with 55 h of real speech; one A40 8.86%

Training data

Data By Licence Used for
IndicVoices (Hindi) AI4Bharat CC BY 4.0 Main training data
Vaani ARTPARK and IISc CC BY 4.0 Regional Hindi speech, slices kept by test score
HiACC CC BY 4.0 Early versions only
Slang sentences TalkXO, read by Maya 2 Native Apache-2.0 (voices) Slang round

Files

File What it is Input Output Size
SangamEncoder.mlmodelc Encoder, 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

Weights n3-slang1, 16-bit, converted on 26 Nov 2026 with coremltools 9.0. The mel front end and the token list live in the app; see "Using the files".

Results in detail

All figures were measured by us, on one machine (M4 Max, 36 GB, macOS 27), one pass each.

  • 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 gives each stretch of the reference a list of accepted spellings (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 clean-up afterwards.

This build, 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
This build Neural Engine 8.85% 1208 / 13,651 716 of 753 clips 59 ms
This build graphics chip 8.82% 1204 / 13,652 740 of 753 clips 19 ms
This build 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, and the changes go both ways.

Does the conversion change anything?

Checked on the sibling weights n3 (same architecture, before the slang round; 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%

The conversion is exact at full precision. The small differences at 16-bit come from 16-bit arithmetic and the Neural Engine, and they repeat exactly from run to run.

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 (a floor: the Neural Engine's own side is not counted), about 375 MB on the graphics chip

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.

English back in English letters. The figures above use the model's raw output. In our apps, a small text step afterwards writes English words that the model heard in Hindi letters back in Latin letters. It is not part of these files.

Not tested

  • Audio longer than 15 s, noisy recordings, and other test sets. The figures above are for one public set of Hindi speech.
  • Slang in real voices at scale. The slang round was checked on held-back generated voices and in one person's own testing (rizz and OTP right; NGL still wrong), not on a real-voice slang test set.
  • A front end other than NeMo's. 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).

Roadmap

  • Submission to the Open ASR Leaderboard, so the figure above is checked independently.
  • More slang and abbreviation rounds, tested on real voices.
  • More Indian languages after Hindi.

Credits

Sangam stands on open work: IndicConformer Hindi by AI4Bharat (MIT), IndicVoices by AI4Bharat, Vaani by ARTPARK and IISc, and HiACC (each CC BY 4.0), Maya 2 Native (Apache-2.0) for the slang speech, and the Open ASR Leaderboard and Voice Arena for a public Hindi test set and scorer.

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

Datasets used to train talkxo/sangam-coreml

Space using talkxo/sangam-coreml 1

Evaluation results

  • OIWER (voi_oiwer 0.1.4), self-reported on Monsoon hi-IN public (Open ASR Leaderboard Hindi set)
    test set self-reported
    8.850