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

GPU Installation

pip install uv
uv pip install indic-asr-onnx 

# Specify --extra-index-url if needed

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

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.1.tar.gz (4.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.2.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: indic_asr_onnx-0.2.1.tar.gz
  • Upload date:
  • Size: 4.9 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.1.tar.gz
Algorithm Hash digest
SHA256 764efebd228345e47b1e6dc8615038dbd41cb383fed7df432719b1e014d86e92
MD5 8c874262c90e80cf0b9dea77a9345acc
BLAKE2b-256 39536f7539d1a37f829128876d02b6a120921d3ff21a38134ad40b53d94d2265

See more details on using hashes here.

File details

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

File metadata

  • Download URL: indic_asr_onnx-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 6.0 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e9ddb1300ba7271995082b9b6c495382800294f1b1be616b8a0df4a5bcabcd58
MD5 c3ed91d4510ccfc3d3fafa551f4b1ce1
BLAKE2b-256 9a2a83b48e3c9cab328d5bfb6ecbdc2802c4f027c89fd93bef4152a5b4a75606

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