Shrutam-2
is a LLM based automatic speech recognition system for 12 major Indian languages. It bridges a Conformer speech encoder with a pretrained LLM decoder through a Mixture-of-Experts (MoE) projection layer, enabling high-quality, prompt-controllable transcription across diverse Indic languages.
Architecture Overview
Unlike conventional CTC/Attention ASR systems that map audio directly to text tokens, Shrutam-2 reframes speech recognition as a conditional language generation task. A speech encoder produces frame-level audio representations, which are then projected into the LLM's embedding space and fed to a frozen LLM decoder alongside a text prompt.
The key architectural contribution is the
MoE Projector
that bridges the encoder and the LLM:
Component
Details
Downsampler
Two-stage Conv1D that reduces the encoder frame rate for efficient LLM consumption
MoE Projector
8 linear experts with
SMEAR
(Soft Merging of Experts with Adaptive Routing) — utterance-level soft gating computes a weighted merge of all expert parameters into a single projector per input, avoiding discrete top-k routing and its associated load-balancing issues
Each expert is a two-layer MLP (
encoder_dim → 2048 → llm_dim
). Rather than routing each frame to a single expert, SMEAR computes frame-wise router probabilities, averages them at the utterance level, and produces a single merged weight matrix per utterance. This yields a smooth, fully differentiable routing mechanism with a simple MSE-based load-balancing loss.
Why LLM-Based ASR?
Traditional ASR pipelines rely on acoustic models trained exclusively on speech-text pairs. By grounding transcription in a pretrained LLM, this approach gains several advantages:
Rich linguistic priors
— The LLM's language knowledge reduces hallucinations and improves fluency, especially for low-resource languages.
Prompt controllability
— Transcription behavior can be steered through natural-language prompts without retraining.
Unified multilingual capacity
— A single model serves all 12 languages, with the MoE layer learning language-adaptive projections.
Languages Supported
#
Language
Script
ISO 639-1
1
Hindi
Devanagari
hi
2
Marathi
Devanagari
mr
3
Tamil
Tamil
ta
4
Telugu
Telugu
te
5
Malayalam
Malayalam
ml
6
Kannada
Kannada
kn
7
Odia
Odia
or
8
Bengali
Bengali
bn
9
Urdu
Nastaliq
ur
10
Assamese
Bengali
as
11
Gujarati
Gujarati
gu
12
Punjabi
Gurmukhi
pa
Extended Capabilities
Note:
The capabilities below are not fully tested and are presented as potential directions. They can be unlocked or significantly enhanced with task-specific fine-tuning.
Prompt Customisation
Because the LLM decoder conditions on both audio embeddings and a text prompt, you can control transcription behavior at inference time by changing the prompt.
Basic transcription:
"Transcribe speech to text."
Language-specific prompting:
"Transcribe the following Hindi speech to text."
"Transcribe the following Tamil speech to Devanagari text."
Domain-specific prompting:
"Transcribe the following medical conversation in Hindi."
"Transcribe the following legal proceeding in Bengali."
Few-Shot Prompting
The LLM backbone enables few-shot prompting where you provide example transcriptions in the prompt to bias the model toward a specific vocabulary, style, or domain:
"The following are examples of transcriptions from a banking domain:
- 'मुझे अपने खाते का बैलेंस जानना है'
- 'कृपया मेरा पिन रीसेट कर दीजिए'
Now transcribe the following speech to text."
This is particularly useful for:
Domain adaptation
— Bias the decoder toward domain-specific terminology (medical, legal, financial) without retraining.
Named entity handling
— Provide example transcriptions containing proper nouns, brand names, or technical terms so the model calibrates its output vocabulary.
Script/transliteration control
— Guide the model toward a particular script or romanization convention.
Code-Switching Support
The multilingual nature of both the speech encoder and the LLM enables handling of code-switched speech (e.g., Hindi-English) when prompted appropriately:
"Transcribe the following Hindi-English code-mixed speech to text."
More Information About Shrutam-2 huggingface.co Model
Shrutam-2 huggingface.co
Shrutam-2 huggingface.co is an AI model on huggingface.co that provides Shrutam-2's model effect (), which can be used instantly with this bharatgenai Shrutam-2 model. huggingface.co supports a free trial of the Shrutam-2 model, and also provides paid use of the Shrutam-2. Support call Shrutam-2 model through api, including Node.js, Python, http.
Shrutam-2 huggingface.co is an online trial and call api platform, which integrates Shrutam-2's modeling effects, including api services, and provides a free online trial of Shrutam-2, you can try Shrutam-2 online for free by clicking the link below.
bharatgenai Shrutam-2 online free url in huggingface.co:
Shrutam-2 is an open source model from GitHub that offers a free installation service, and any user can find Shrutam-2 on GitHub to install. At the same time, huggingface.co provides the effect of Shrutam-2 install, users can directly use Shrutam-2 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.