imYChaudhary22's picture
Match the BuilderHelm model card format for Indic-Transcribe Flex
de38689 verified
|
Raw History Blame Contribute Delete
7.21 kB
---
license: other
license_name: indic-open-model-license
license_link: LICENSE.md
base_model: bodhan-ai/indic-transcribe-flex
pipeline_tag: automatic-speech-recognition
language: [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**
```bash
hf download BuilderHelm/Indic-Transcribe-Flex-CoreML --revision e0fb867958841bda98cb29ddbed6b47d6ec87ec3 --local-dir Indic-Transcribe-Flex-CoreML
cd Indic-Transcribe-Flex-CoreML
python3 -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 |
## Swift
Use 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.
```swift
import BuilderHelmAudio
let 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.
## Conversion
BuilderHelm 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 scope
The 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.