Downloads · 30 days
8
7% of all-time downloads
takehika/wav2vec2-librispeech-en-finetuned
wav2vec2-librispeech-en-finetuned is a automatic speech recognition model from takehika. Use it when you need speech turned into text. It is set up for transformers. The card lists the license as cc-by-4.0.
Fine-tuned facebook/wav2vec2-large-xlsr-53 for English ASR using LibriSpeech (openslr/librispeechasr, clean, train.360).
Downloads · 30 days
8
7% of all-time downloads
All-time downloads
118
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
Fine-tuned facebook/wav2vec2-large-xlsr-53 for English ASR using LibriSpeech (openslr/librispeech_asr, clean, train.360).
facebook/wav2vec2-large-xlsr-53openslr/librispeech_asr0.0691import torch
import librosa
from transformers import AutoProcessor, AutoModelForCTC
repo_id = "takehika/wav2vec2-librispeech-en-finetuned"
processor = AutoProcessor.from_pretrained(repo_id)
model = AutoModelForCTC.from_pretrained(repo_id)
speech, _ = librosa.load("sample.wav", sr=16_000)
inputs = processor(speech, sampling_rate=16_000, return_tensors="pt")
with torch.no_grad():
logits = model(**inputs).logits
pred_ids = torch.argmax(logits, dim=-1)
text = processor.batch_decode(pred_ids)[0]
print(text)
HELLO, WORLD. I'M JOHN.hello world im johnopenslr/librispeech_asrcleantrain.360 (104,014 samples)validation (2,703 samples)test (2,620 samples)82 (effective 16)2e-5constant_with_warmup5005000.0691facebook/wav2vec2-large-xlsr-53: Apache-2.0openslr/librispeech_asr: CC BY 4.0References:
@inproceedings{panayotov2015librispeech,
title={Librispeech: an ASR corpus based on public domain audio books},
author={Panayotov, Vassil and Chen, Guoguo and Povey, Daniel and Khudanpur, Sanjeev},
booktitle={Acoustics, Speech and Signal Processing (ICASSP), 2015 IEEE International Conference on},
pages={5206--5210},
year={2015},
organization={IEEE}
}