Downloads · 30 days
10
17% of all-time downloads
Rahul3215/swecha-gonthuka-asr
swecha-gonthuka-asr is a automatic speech recognition model from Rahul3215. Use it when you need speech turned into text. It is set up for transformers. The card lists the license as apache-2.0.
This model is a fine-tuned Automatic Speech Recognition (ASR) model for the Telugu language. It is based on the swechatelangana/swecha-gonthuka-asr model and fine-tuned on a custom Telugu speech dataset.
Downloads · 30 days
10
17% of all-time downloads
All-time downloads
59
Public
Parameters
94.4M
378 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors378 MB · 100%
From the Hugging Face model README
This model is a fine-tuned Automatic Speech Recognition (ASR) model for the Telugu language. It is based on the swechatelangana/swecha-gonthuka-asr model and fine-tuned on a custom Telugu speech dataset.
The model converts spoken Telugu audio into Telugu text.
The model was fine-tuned on a custom Telugu speech dataset.
Dataset statistics:
The dataset contains Telugu speech recordings with corresponding Telugu transcripts.
| Parameter | Value |
|---|---|
| Epochs | 20 |
| Learning Rate | 1e-5 |
| Batch Size | 8 |
| Optimizer | AdamW |
| Framework | Hugging Face Trainer |
| Metric | Value |
|---|---|
| Validation Loss | 0.4166 |
| Word Error Rate (WER) | 50.58% |
| Character Error Rate (CER) | 15.32% |
Compared to the previous version of the model:
| Version | Dataset Size | Validation Loss | WER | CER |
|---|---|---|---|---|
| V1 | 1017 | 0.4442 | 55.12% | 16.27% |
| V2 | 1226 | 0.4166 | 50.58% | 15.32% |
The additional training data improved the overall recognition performance.
from transformers import AutoProcessor, AutoModelForCTC
import librosa
import torch
processor = AutoProcessor.from_pretrained("YOUR_USERNAME/YOUR_MODEL_NAME")
model = AutoModelForCTC.from_pretrained("YOUR_USERNAME/YOUR_MODEL_NAME")
speech, sr = librosa.load("sample.mp3", sr=16000)
inputs = processor(
speech,
sampling_rate=16000,
return_tensors="pt"
)
with torch.no_grad():
logits = model(**inputs).logits
predicted_ids = torch.argmax(logits, dim=-1)
prediction = processor.batch_decode(predicted_ids)[0]
print(prediction)
The model may produce recognition errors for:
Additional diverse training data can further improve performance.
Rahul Karnati
Data Science Undergraduate
Specialization: Artificial Intelligence and Machine Learning