Model Card for whisper-telugu-medium-indicvoices
A Telugu automatic speech recognition (ASR) model, fine-tuned from vasista22/whisper-telugu-medium on the Telugu subset of ai4bharat/IndicVoices to improve transcription accuracy on natural, colloquial, day-to-day spoken Telugu — intended for use as the speech-recognition component of a Telugu conversational voice agent.
Model Details
Model Description
This model fine-tunes an existing Telugu Whisper checkpoint on IndicVoices, a crowd-sourced dataset of authentic, informal conversational Telugu speech (as opposed to clean read-speech/news-style audio). The goal was to improve robustness on real, everyday spoken Telugu for use in interactive voice applications such as a telecalling/voice-agent system.
Fine-tuning was performed using LoRA (Low-Rank Adaptation) via 🤗 PEFT, and the resulting adapter was subsequently merged into the base model weights. This repository contains the full merged model — it loads and runs like any standard Whisper checkpoint, with no separate adapter-loading step required.
- Developed by: Dhanush444
- Funded by: Self-funded (personal/independent project)
- Shared by: Dhanush444
- Model type: Encoder-decoder speech-to-text transformer (Whisper architecture), fine-tuned via LoRA
- Language(s) (NLP): Telugu (
te) - License: Apache 2.0 (inherited from base model)
- Finetuned from model:
vasista22/whisper-telugu-medium
Model Sources
- Repository: https://huggingface.co/Dhanush444/whisper-telugu-medium-indicvoices
- Base model: https://huggingface.co/vasista22/whisper-telugu-medium
- Training dataset: https://huggingface.co/datasets/ai4bharat/IndicVoices
Uses
Direct Use
Transcribing spoken Telugu audio into text, particularly natural/colloquial conversational speech — e.g., voice assistants, call-center/telecalling transcription, accessibility tools, and general-purpose Telugu dictation.
Downstream Use
Intended as the speech-to-text (STT) stage of a larger Telugu conversational voice agent pipeline (STT → LLM reasoning → TTS), such as an automated outbound telecalling assistant.
Out-of-Scope Use
- Not optimized for heavily accented non-native Telugu speech outside the training distribution.
- Not specifically tuned for studio-quality broadcast/news-style Telugu (though it may still perform reasonably).
- Not designed for heavy code-mixed Telugu-English speech beyond what naturally occurs in the training data.
- Should not be used as the sole decision-making system in high-stakes contexts (e.g., legal/medical transcription) without human review, given the measured error rates below.
Bias, Risks, and Limitations
- Trained on IndicVoices, a crowd-sourced conversational dataset — performance may vary on speech styles, dialects, accents, or recording/microphone conditions not well represented in that dataset.
- Like all Whisper-family models, performance degrades on very short utterances, heavy background noise, or overlapping speech.
- The evaluation set (see below) contains a small number of noisy/placeholder ground-truth labels inherited from the source dataset's annotations (e.g., literal
"unintelligible"text used as a reference transcript for some samples), which inflate the measured character error rate for those specific samples.
Recommendations
Users should validate performance on their own target audio distribution (microphone type, background noise, speaker demographics) before deploying in production, and should not treat transcription output as ground truth in high-stakes use cases without human review.
How to Get Started with the Model
import torch
from transformers import WhisperForConditionalGeneration, WhisperProcessor, GenerationConfig
MODEL_ID = "Dhanush444/whisper-telugu-medium-indicvoices"
processor = WhisperProcessor.from_pretrained(MODEL_ID)
model = WhisperForConditionalGeneration.from_pretrained(
MODEL_ID,
torch_dtype=torch.float32, # fp32 recommended, avoids dtype mismatch issues
)
device = "cuda" if torch.cuda.is_available() else "cpu"
model = model.to(device).eval()
model.generation_config.language = "te"
model.generation_config.task = "transcribe"
# If lang_to_id is missing, patch it from the original Whisper checkpoint:
base_gen_config = GenerationConfig.from_pretrained("openai/whisper-medium")
if not getattr(model.generation_config, "lang_to_id", None):
model.generation_config.lang_to_id = base_gen_config.lang_to_id
def transcribe(audio_array, sampling_rate=16000):
inputs = processor(audio_array, sampling_rate=sampling_rate, return_tensors="pt")
input_features = inputs.input_features.to(device)
model_dtype = next(model.parameters()).dtype
input_features = input_features.to(model_dtype)
with torch.no_grad():
predicted_ids = model.generate(
input_features, language="te", task="transcribe", max_new_tokens=225
)
return processor.batch_decode(predicted_ids, skip_special_tokens=True)[0].strip()
# Example with a local audio file:
# import librosa
# audio_array, sr = librosa.load("your_audio.wav", sr=16000)
# print(transcribe(audio_array))