ai4bharat / MahaDhwani_pretrained_conformer

huggingface.co
Total runs: 97
24-hour runs: 0
7-day runs: -5
30-day runs: -5
Model's Last Updated: December 14 2024
automatic-speech-recognition

Introduction of MahaDhwani_pretrained_conformer

Model Details of MahaDhwani_pretrained_conformer

MahaDhwani Pretrained Conformer

It is a self-supervised pre-trained conformer encoder model trained on MahaDhwani dataset.

Language

Contains training data from 22 scheduled languages of India.

Input

This model accepts 16000 KHz Mono-channel Audio (wav files) as input.

Output

This model provides conformer encoder embeddings as the output for a given audio sample.

Model Architecture

This model is a conformer-Large model, consisting of 120M parameters, as the encoder. The model has 17 conformer blocks with 512 as the model dimension.

AI4Bharat NeMo:

To load, train, fine-tune or play with the model you will need to install AI4Bharat NeMo . We recommend you install it using the command shown below

git clone https://github.com/AI4Bharat/NeMo.git && cd NeMo && git checkout nemo-v2 && bash reinstall.sh
Usage

Download and load the model from Huggingface.

import pydub
import numpy as np
import torch
import nemo.collections.asr as nemo_asr

model = nemo_asr.models.ASRModel.from_pretrained("ai4bharat/MahaDhwani_pretrained_conformer")

device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
model.freeze() # inference mode
model = model.to(device) # transfer model to device

Get an audio file ready by running the command shown below in your terminal. This will convert the audio to 16000 Hz and monochannel.

ffmpeg -i sample_audio.wav -ac 1 -ar 16000 sample_audio_infer_ready.wav
Inference
wavpath = 'sample.wav'
wav = pydub.AudioSegment.from_file(wavpath).set_frame_rate(16000).set_channels(1)
sarray = wav.get_array_of_samples()
fp_arr = np.array(sarray).T.astype(np.float64)
fp_arr = fp_arr.reshape((1,-1))
feature = torch.from_numpy(fp_arr).float().to(device='cuda')
length=torch.tensor([fp_arr.shape[1]]).to(device='cuda')

spectrograms, spec_masks, encoded, encoded_len = model(input_signal=feature,input_signal_length=length)

Runs of ai4bharat MahaDhwani_pretrained_conformer on huggingface.co

97
Total runs
0
24-hour runs
-2
3-day runs
-5
7-day runs
-5
30-day runs

More Information About MahaDhwani_pretrained_conformer huggingface.co Model

More MahaDhwani_pretrained_conformer license Visit here:

https://choosealicense.com/licenses/mit

MahaDhwani_pretrained_conformer huggingface.co

MahaDhwani_pretrained_conformer huggingface.co is an AI model on huggingface.co that provides MahaDhwani_pretrained_conformer's model effect (), which can be used instantly with this ai4bharat MahaDhwani_pretrained_conformer model. huggingface.co supports a free trial of the MahaDhwani_pretrained_conformer model, and also provides paid use of the MahaDhwani_pretrained_conformer. Support call MahaDhwani_pretrained_conformer model through api, including Node.js, Python, http.

MahaDhwani_pretrained_conformer huggingface.co Url

https://huggingface.co/ai4bharat/MahaDhwani_pretrained_conformer

ai4bharat MahaDhwani_pretrained_conformer online free

MahaDhwani_pretrained_conformer huggingface.co is an online trial and call api platform, which integrates MahaDhwani_pretrained_conformer's modeling effects, including api services, and provides a free online trial of MahaDhwani_pretrained_conformer, you can try MahaDhwani_pretrained_conformer online for free by clicking the link below.

ai4bharat MahaDhwani_pretrained_conformer online free url in huggingface.co:

https://huggingface.co/ai4bharat/MahaDhwani_pretrained_conformer

MahaDhwani_pretrained_conformer install

MahaDhwani_pretrained_conformer is an open source model from GitHub that offers a free installation service, and any user can find MahaDhwani_pretrained_conformer on GitHub to install. At the same time, huggingface.co provides the effect of MahaDhwani_pretrained_conformer install, users can directly use MahaDhwani_pretrained_conformer installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

MahaDhwani_pretrained_conformer install url in huggingface.co:

https://huggingface.co/ai4bharat/MahaDhwani_pretrained_conformer

Url of MahaDhwani_pretrained_conformer

MahaDhwani_pretrained_conformer huggingface.co Url

Provider of MahaDhwani_pretrained_conformer huggingface.co

ai4bharat
ORGANIZATIONS

Other API from ai4bharat

huggingface.co

Total runs: 237.0K
Run Growth: -13.0K
Growth Rate: -5.46%
Updated:August 08 2022
huggingface.co

Total runs: 28.8K
Run Growth: 1.6K
Growth Rate: 5.46%
Updated:October 06 2026
huggingface.co

Total runs: 9.1K
Run Growth: -738
Growth Rate: -7.98%
Updated:December 21 2022
huggingface.co

Total runs: 2.0K
Run Growth: -1.3K
Growth Rate: -60.56%
Updated:August 08 2022
huggingface.co

Total runs: 854
Run Growth: -2.4K
Growth Rate: -286.07%
Updated:November 19 2025
huggingface.co

Total runs: 431
Run Growth: -1.6K
Growth Rate: -342.11%
Updated:March 11 2024
huggingface.co

Total runs: 428
Run Growth: 285
Growth Rate: 71.07%
Updated:June 01 2022
huggingface.co

Total runs: 132
Run Growth: 34
Growth Rate: 25.76%
Updated:September 01 2026
huggingface.co

Total runs: 96
Run Growth: 15
Growth Rate: 15.79%
Updated:October 18 2024
huggingface.co

Total runs: 87
Run Growth: -6
Growth Rate: -7.06%
Updated:October 18 2024
huggingface.co

Total runs: 85
Run Growth: 9
Growth Rate: 10.59%
Updated:October 18 2024