Skip to main content

Quantized IndicConformer ASR models for multiple Indian languages

Project description

Indic ASR Quantized

A helper package to use Quantized Indic ASR (Automatic Speech Recognition) for multiple Indic languages.

The original model was developed by AI4Bharat and can be found here

Installation

CPU-only Installation (Recommended for limited resources)

pip install uv
uv pip install indic-asr-onnx --extra-index-url https://download.pytorch.org/whl/cpu

GPU Installation

pip install uv
uv pip install indic-asr-onnx --extra-index-url https://download.pytorch.org/whl/cu113

Quick Start

from indic_asr_onnx import IndicTranscriber

# Initialize (downloads model automatically)
transcriber = IndicTranscriber()

# Transcribe audio using CTC head
text = transcriber.transcribe_ctc("audio.wav", "hi")  # Hindi
print(text)

# Transcribe audio using RNN-T head
text = transcriber.transcribe_rnnt("audio.wav", "hi")  # Hindi
print(text)

Supported Languages

  • Assamese (as)
  • Bengali (bn)
  • Bodo (brx)
  • Dogri (doi)
  • Gujarati (gu)
  • Hindi (hi)
  • Kannada (kn)
  • Kashmiri (ks)
  • Konkani (kok)
  • Maithili (mai)
  • Malayalam (ml)
  • Manipuri (mni)
  • Marathi (mr)
  • Nepali (ne)
  • Odia (or)
  • Punjabi (pa)
  • Sanskrit (sa)
  • Santali (sat)
  • Sindhi (sd)
  • Tamil (ta)
  • Telugu (te)
  • Urdu (ur)

Features

  • Quantized Models: INT8 quantization for efficient CPU inference
  • Multiple Languages: Support for 22 Indic languages
  • Two Modes: CTC and RNN-T decoding
  • Auto Download: Models download automatically on first use
  • ONNX Runtime: Optimized inference with ONNX

Audio Requirements

  • Format: WAV, MP3, FLAC, etc.
  • Sample Rate: Auto-resampled to 16kHz
  • Channels: Mono (auto-converted)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

indic_asr_onnx-0.1.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

indic_asr_onnx-0.1.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file indic_asr_onnx-0.1.1.tar.gz.

File metadata

  • Download URL: indic_asr_onnx-0.1.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for indic_asr_onnx-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c33cdd438a822c8ce09558a548a092e74ba0feb94fd48a072631c7030d797db6
MD5 b321b3349fa9b0d1010e59ef17ea7397
BLAKE2b-256 8c2aaf57d2531c8e206ffb801736d4bc836195b32f1f06ba3b7ffc918048523b

See more details on using hashes here.

File details

Details for the file indic_asr_onnx-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: indic_asr_onnx-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for indic_asr_onnx-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c6001475ff1d5a940d67b9135c4bbb92ae37bfde6b7a919f05b8a954701758f4
MD5 753a240acff80be70afa8698750c37d5
BLAKE2b-256 f7702c4df68cd294ac5de6a83faf4b71b2a86afeabd920b3d8329705f7baddcc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page