IndicSpeech GitHub

India’s languages,
heard on device.

IndicSpeech turns speech in Telugu, Hindi, Tamil and 19 more Indian languages into text on iPhone and Mac, with a start and end time for every word, and it can tell which language is being spoken. Free, offline, and the audio never leaves the device.

నమస్కారంఈరోజువాతావరణంచాలాబాగుంది

“Hello, the weather is really nice today.” Illustration; timings in 80 ms frames.

engine.transcribe(contentsOf: clip, language: .telugu)

    One output head for every language. Each uses its own 257 of 5,633 columns.

    Get the package

    Swift Package Manager · macOS 26 and iOS 26 · Apache-2.0 · Model on Hugging Face

    22
    languages, one model
    ~400×
    real time on an M4
    9 s
    for an hour of audio
    0
    bytes of audio sent anywhere

    Measured on an Apple M4 Mac. Peak memory about 0.75 GB. The first load takes 15 to 20 seconds while the Neural Engine compiles the model; after that, about a tenth of a second.

    A few lines of Swift

    Point it at the model folder, hand it a file, and get words with times. Not sure what language it is? Ask.

    Built for ezRecord, where it powers Telugu captions and editing by words. Shared so any Apple app can understand India’s languages.

    import IndicSpeech
    
    let engine = try await IndicConformerEngine(modelDirectory: modelURL)
    let result = try await engine.transcribe(contentsOf: audioURL, language: .telugu)
    for word in result.words {
        print(word.text, word.start, word.end)   // నమస్కారం 1.60 2.24 …
    }
    
    // Not sure which language it is?
    let best = try await engine.detectLanguage(contentsOf: audioURL).first?.language

    Every scheduled language

    All 22 of India’s scheduled languages, from one model.

    • অসমীয়াAssamese
    • বাংলাBengali
    • बड़ोBodo
    • डोगरीDogri
    • ગુજરાતીGujarati
    • हिन्दीHindi
    • ಕನ್ನಡKannada
    • کٲشُرKashmiri
    • कोंकणीKonkani
    • मैथिलीMaithili
    • മലയാളംMalayalam
    • মৈতৈলোন্Manipuri
    • मराठीMarathi
    • नेपालीNepali
    • ଓଡ଼ିଆOdia
    • ਪੰਜਾਬੀPunjabi
    • संस्कृतम्Sanskrit
    • ᱥᱟᱱᱛᱟᱲᱤSantali
    • سنڌيSindhi
    • தமிழ்Tamil
    • తెలుగుTelugu
    • اردوUrdu

    Faithful, and fast

    Converted to Core ML and palettized to 8 bits, and checked against the original at every step.

    • Close to the original: within 0.5 points of word error rate of AI4Bharat’s PyTorch model on FLEURS, for Hindi, Tamil and Telugu.
    • Real speech, every word: a native speaker’s 40-second Telugu recording in an ordinary room came back with no character errors. Apple’s built-in recognizer had turned it into English-letter guesses.
    • The right language: 11 of 12 test clips. The miss was a 5-second Hindi clip that scored Urdu by a hair.
    • Honest about the gaps: weaker on low-resource languages such as Bodo and Dogri. AI4Bharat’s results have the detail.

    Any length of audio

    Audio is cut into 15.36-second windows that overlap. Each window is read from its own audio, and neighbours are joined at a word both of them heard, so nothing is said twice.

    How it works

    Small, careful pieces in Swift around one model.

    • Language detection, almost free: decode the first window under every language’s mask and keep the most confident. No second model.
    • A mel frontend in Swift with vDSP, matching NeMo’s preprocessor to a cosine of 0.9999999999.
    • Word timings from the CTC frames, 80 ms each. Ends land slightly early, so refine with forced alignment for tight karaoke.
    • The whole conversion is in scripts/, with pinned versions: export, convert, palettize, test, benchmark.
    • indic-transcribe, a command-line tool for trying it on a file.

    Questions

    What does it need?

    macOS 26 or iOS 26 and Swift 6. It uses system frameworks only: Accelerate, AVFoundation and Core ML. The model is a separate download of about 600 MB from Hugging Face.

    Does any audio leave the device?

    No. The mel frontend, the model and the decoding all run on the device, on the Apple Neural Engine. It works offline.

    How accurate is it?

    On Google’s FLEURS test clips it stays within 0.5 points of word error rate of AI4Bharat’s own PyTorch model for Hindi, Tamil and Telugu. It’s strongest on widely spoken languages and weaker on low-resource ones like Bodo and Dogri.

    Does it add punctuation?

    No, the model writes words only. Break captions on pauses, or add a punctuation pass afterwards. AI4Bharat’s Cadence is the planned add-on.

    Has it been measured on iPhone?

    Not yet. The numbers here are from an M4 Mac. Some iPhone Neural Engines reject palettized weights, so an fp16 build is planned for them.

    Who made the model?

    AI4Bharat at IIT Madras, who trained IndicConformer and released it under MIT. IndicSpeech converts it to Core ML and does everything around it in Swift. All credit for the model goes to them.

    What does it cost?

    Nothing. The package and the conversion scripts are Apache-2.0; the model is MIT.

    Let your app listen.

    Get the package

    Model AI4Bharat IndicConformer Support