Downloads · 30 days
8
5% of all-time downloads
shani925273/surah-kawthar-asr-v2
surah-kawthar-asr-v2 is a automatic speech recognition model from shani925273. Use it when you need speech turned into text. The card lists the license as apache-2.0.
This is a fine-tuned Wav2Vec2ForCTC model for Arabic (Quranic) speech recognition — specifically Surah Al-Kawthar recitations.
Downloads · 30 days
8
5% of all-time downloads
All-time downloads
163
Public
Parameters
315M
1.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.3 GB · 100%
From the Hugging Face model README
This is a fine-tuned Wav2Vec2ForCTC model for Arabic (Quranic) speech recognition — specifically Surah Al-Kawthar recitations.
from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor
import torch, soundfile as sf
processor = Wav2Vec2Processor.from_pretrained("shani925273/surah-kawthar-asr-v2")
model = Wav2Vec2ForCTC.from_pretrained("shani925273/surah-kawthar-asr-v2")
audio, rate = sf.read("sample.wav")
inputs = processor(audio, sampling_rate=16000, return_tensors="pt", padding=True)
with torch.no_grad():
logits = model(**inputs).logits
predicted_ids = torch.argmax(logits, dim=-1)
text = processor.batch_decode(predicted_ids)[0]
print(text)