Downloads · 30 days
12
9% of all-time downloads
herwoww/nadi2025_task3_B1
nadi2025_task3_B1 is a automatic speech recognition model from herwoww. Use it when you need speech turned into text. The card lists the license as cc-by-4.0.
Downloads · 30 days
12
9% of all-time downloads
All-time downloads
139
Public
Parameters
155M
620 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors619 MB · 100%
From the Hugging Face model README
import librosa
from transformers import AutoModelForSpeechSeq2Seq, AutoProcessor
model_id="herwoww/nadi2025_task3_B1"
processor = AutoProcessor.from_pretrained(model_id)
model = AutoModelForSpeechSeq2Seq.from_pretrained(model_id).to(device)
pipe = pipeline(
"automatic-speech-recognition",
model=model,
tokenizer=processor.tokenizer,
feature_extractor=processor.feature_extractor,
torch_dtype=torch_dtype,
device=device,
)
wav, sr = librosa.load("audio.wav", sr=16000)
pipe(wav, generate_kwargs={'num_beams': 10, 'early_stopping': True})['text']