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.2.0.tar.gz (4.0 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.2.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: indic_asr_onnx-0.2.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.15 {"installer":{"name":"uv","version":"0.9.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"43","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for indic_asr_onnx-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6951e3710cb07dfd52bedd14b4eeb7965b77d6363c003322ca9fc41e3d256490
MD5 8dc67f3c6eb5d4a9ceedbc9374b91a1c
BLAKE2b-256 3f88b4ea9b5eddafb08c0d56c45a84ee14965367b49075dba0c55e639e7f4666

See more details on using hashes here.

File details

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

File metadata

  • Download URL: indic_asr_onnx-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.15 {"installer":{"name":"uv","version":"0.9.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"43","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for indic_asr_onnx-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ef0dc52ee8f74b1dba286af9433330005768ec19e07c65f9fb362b10df25e9bc
MD5 5df6b8bf136d26a6a5a1eb41ac574835
BLAKE2b-256 76d119acb9d1f8dc353920bb0280bc7c12ed9065149ee7bf093a7684e11851ce

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