Match the BuilderHelm model card format for Indic-Transcribe Flex
Browse files4 unmodified lines56789101112131415161718192021222324252627282930313233343536373839404142434 unmodified linesbase_model: bodhan-ai/indic-transcribe-flexpipeline_tag: automatic-speech-recognitionlanguage: [as, bgc, bhb, bho, bn, brx, doi, en, gu, hi, hne, kn, kok, ks, mai, ml, mni, mr, ne, or, pa, sa, sat, sd, ta, te, ur]tags: [coreml, apple-silicon, on-device, indic, speech-to-text]inference: false---# Indic-Transcribe Flex for Core ML<img src="icon.png" alt="Indic-Transcribe Flex icon" width="96">Built with Indic-Transcribe Flex from Bodhan AI / AI4Bharat.BuilderHelm converted the [Bodhan model](https://huggingface.co/bodhan-ai/indic-transcribe-flex) to Core ML for on-device speech recognition on Apple hardware. The export uses the Bodhan checkpoint at `ecba9bac9013c0340fe814b336897ee51ed80be9`, an FP32 audio frontend, an FP16 encoder and a stateful FP16 decoder. It ships the tokenizer and original license alongside the three Core ML packages.## Language and scriptUse `en` for Indian English, `hi` with native output for Hindi in Devanagari, and `hi` with romanized output for Hinglish. The other explicit language codes use native output by default. Automatic detection uses the detected language鈥檚 native script. Haryanvi (`bgc`) and Bhili (`bhb`) require explicit selection in the Bodhan detection policy.The SDK also exposes the mixed mode. These packages accept 16 kHz mono audio, up to 30 seconds per model request. Long recordings can be split into windows by the host application. On this export the frontend runs on CPU and Core ML can use the GPU for encoder and decoder. No hosted inference endpoint is provided.## Run locallyUse a [BuilderHelmAudio](https://github.com/BuilderHelm/BuilderHelmAudio) checkout containing the Indic-Transcribe Flex runtime on macOS 15 or later. Download this repository鈥檚 packages and tokenizer into the same folder, then run:```shswift run bhaudio indic-transcribe speech.wav --model-dir /path/to/model --language hi --mode native --cachedswift run bhaudio indic-transcribe speech.wav --model-dir /path/to/model --language hi --mode romanized --cached```The package files and their SHA-256 checksums are listed in [manifest.json](manifest.json).## VerificationIn a conversion parity check against the pinned Bodhan runner, native output matched on 26 of 27 language clips, with one Sindhi vowel difference. Three romanized Hinglish clips matched. ZenVoice also reproduced all 33 recorded Core ML outputs after applying the reference audio preprocessing. These are small conversion checks. They do not estimate population word error rate or guarantee performance across accents, domains or recording conditions.## License and provenanceThe conversion is distributed under the unchanged [Indic Open Model License](LICENSE.md). Bodhan AI / AI4Bharat developed Indic-Transcribe Flex. Its upstream [NVIDIA Canary 1B v2](https://huggingface.co/nvidia/canary-1b-v2) is credited under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). BuilderHelm changed the packaging and inference graph for Core ML.4 unmodified lines567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181194 unmodified linesbase_model: bodhan-ai/indic-transcribe-flexpipeline_tag: automatic-speech-recognitionlanguage: [as, bgc, bhb, bho, bn, brx, doi, en, gu, hi, hne, kn, kok, ks, mai, ml, mni, mr, ne, or, pa, sa, sat, sd, ta, te, ur]tags: [coreml, speech-to-text, multilingual, on-device, apple-silicon, indic, zenvoice]inference: false---# Indic-Transcribe Flex 路 Core ML<!-- builderhelm-header --><div align="center"><img src="icon.png" width="160" alt="Indic-Transcribe Flex"/></div><div align="center"><a href="https://huggingface.co/BuilderHelm"><img alt="Hugging Face: BuilderHelm" src="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-BuilderHelm-ffc107?labelColor=555"/></a><a href="https://github.com/BuilderHelm/BuilderHelmAudio"><img alt="GitHub: BuilderHelmAudio" src="https://img.shields.io/badge/GitHub-BuilderHelmAudio-24292f?labelColor=555&logo=github&logoColor=white"/></a><br><a href="https://getzenvoice.com"><img alt="ZenVoice: Homepage" src="https://img.shields.io/badge/ZenVoice-Homepage-536af5?labelColor=555"/></a><a href="https://getzenvoice.com/download"><img alt="Download: ZenVoice for Mac" src="https://img.shields.io/badge/Download-ZenVoice%20for%20Mac-536af5?labelColor=555&logo=apple&logoColor=white"/></a><br><a href="LICENSE.md"><img alt="License: Indic Open Model License" src="https://img.shields.io/badge/License-Indic%20Open%20Model%20License-f5de53?labelColor=555"/></a><img alt="Runs on: Apple Silicon" src="https://img.shields.io/badge/Runs%20on-Apple%20Silicon-8b8b8b?labelColor=555&logo=apple&logoColor=white"/><a href="https://huggingface.co/bodhan-ai/indic-transcribe-flex"><img alt="Base: Indic-Transcribe Flex" src="https://img.shields.io/badge/Base-Indic%20Transcribe%20Flex-76b900?labelColor=555"/></a></div><!-- builderhelm-header -->**27 languages 路 Indian English and Hinglish 路 on-device transcription**Built with Indic-Transcribe Flex from Bodhan AI / AI4Bharat.BuilderHelm converted Bodhan AI / AI4Bharat's Indic-Transcribe Flex to Core ML for offline dictation and file transcription in ZenVoice. The export retains the original tokenizer and language prompts. The runtime makes its predictions locally on Apple Silicon.## Builds| Repository | Weights | Download | Runtime ||---|---|---:|---|| [Core ML](https://huggingface.co/BuilderHelm/Indic-Transcribe-Flex-CoreML) | FP16 encoder and decoder, FP32 frontend | 2.45 GB | BuilderHelmAudio on Apple Silicon |**Core ML**```bashhf download BuilderHelm/Indic-Transcribe-Flex-CoreML --revision e0fb867958841bda98cb29ddbed6b47d6ec87ec3 --local-dir Indic-Transcribe-Flex-CoreMLcd Indic-Transcribe-Flex-CoreMLpython3 -c 'import json; print("\n".join("{sha256} {path}".format(**item) for item in json.load(open("manifest.json"))["files"]))' | shasum -a 256 -c```## Contents| File | Purpose ||---|---|| `frontend.mlpackage` | FP32 audio feature extraction || `encoder.mlpackage` | FP16 acoustic encoder || `decoder_cached.mlpackage` | FP16 decoder with a stateful attention cache || `tokenizer.json` | Vocabulary, language tokens and output-mode prompts || `manifest.json` | Source revision, file sizes and SHA-256 checksums || `LICENSE.md` | Original Indic Open Model License |## SwiftUse the [BuilderHelmAudio runtime](https://github.com/BuilderHelm/BuilderHelmAudio/pull/9) on macOS 15 or later. Keep the three packages and tokenizer in the same directory. Core ML compiles the packages on the Mac.```swiftimport BuilderHelmAudiolet recognizer = try IndicTranscribeFlex(modelDirectory: modelDirectory, useCachedDecoder: true)let hindi = try await recognizer.transcribe(file: audioURL, language: "hi", mode: .native)let hinglish = try await recognizer.transcribe(file: audioURL, language: "hi", mode: .romanized)let automatic = try await recognizer.transcribe(file: audioURL)print(hindi.text, hinglish.text, automatic.language, automatic.text)```## Language and script| ZenVoice choice | Runtime selection | Output ||---|---|---|| Hindi | `hi`, native | Devanagari || Hinglish | `hi`, romanized | Latin script || Indian English | `en`, native | English || Auto Detect | Omit the language | Native script of the detected language || Other supported languages | Explicit language code, native | The selected language's native script |The model supports Assamese, Bengali, Bhili, Bhojpuri, Bodo, Chhattisgarhi, Dogri, Gujarati, Haryanvi, Hindi, Indian English, Kannada, Kashmiri, Konkani, Maithili, Malayalam, Manipuri, Marathi, Nepali, Odia, Punjabi, Sanskrit, Santali, Sindhi, Tamil, Telugu and Urdu. Bhili and Haryanvi require explicit selection. The SDK also exposes a mixed output mode.## ConversionBuilderHelm exported the published Bodhan checkpoint as three Core ML packages. The frontend extracts features from 16 kHz mono audio. The encoder processes those features, and the cached decoder reuses attention state during token generation.## Accuracy| Comparison | Exact matches ||---|---:|| Core ML against the Bodhan native-output reference | 26 / 27 || Core ML against the Bodhan romanized Hinglish reference | 3 / 3 || ZenVoice on macOS 27 with the CPU encoder against the earlier Core ML reference | 28 / 33 |The difference in the first comparison was one Sindhi vowel. On macOS 27, all 33 fixtures completed, including all three matching Hinglish clips. The five differences were in Haryanvi, Bhili, Bodo and two rows for the same Sindhi vowel. These fixture checks measure transcript agreement. A corpus-wide word error rate is unavailable.## Device and performance scopeThe conversion was tested on Apple Silicon. On macOS 27, BuilderHelmAudio runs the encoder on CPU to avoid a Core ML GPU assertion. ZenVoice was tested offline with recorded input through its dictation and file-transcription paths.## Limitations- **Audio length.** Each model request accepts up to 30 seconds of 16 kHz mono audio. ZenVoice splits longer recordings before inference.- **Language detection.** Auto Detect can confuse closely related languages, including Hindi and Urdu. Explicit language selection fixes the requested language and script.- **Evaluation coverage.** The test set covers conversion parity on short fixtures. Accuracy across dialects, noise levels and recording devices remains unmeasured.## Source and reproduction- [Bodhan AI / AI4Bharat checkpoint](https://huggingface.co/bodhan-ai/indic-transcribe-flex/tree/ecba9bac9013c0340fe814b336897ee51ed80be9).- [BuilderHelmAudio exporter and parity tools](https://github.com/BuilderHelm/BuilderHelmAudio/tree/53ef82e5aa7dfd05ad70fb0889cb9f11bc322eeb/Scripts/IndicTranscribeFlex).- [Core ML artifact manifest](manifest.json) records the source checkpoint and verifies the individual files.- The Bodhan model builds on [NVIDIA Canary 1B v2](https://huggingface.co/nvidia/canary-1b-v2), credited under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).The conversion is distributed under the unchanged [Indic Open Model License](LICENSE.md). Bodhan AI / AI4Bharat developed the model. BuilderHelm converted and packaged it for Core ML.
README.md+93-17