Downloads · 30 days
2
1% of all-time downloads
ABDALLALSWAITI/wav2vec2-large-xlsr-arabic
wav2vec2-large-xlsr-arabic is a automatic speech recognition model from ABDALLALSWAITI. 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 SafeTensor conversion of kmfoda/wav2vec2-large-xlsr-arabic.
Downloads · 30 days
2
1% of all-time downloads
All-time downloads
180
Public
Parameters
316M
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 model is a SafeTensor conversion of kmfoda/wav2vec2-large-xlsr-arabic.
This is a fine-tuned version of Facebook's Wav2Vec2 large model on Arabic speech data. The model has been converted to SafeTensor format for improved loading speed and security.
from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor
import torch
import librosa
# Load model and processor
processor = Wav2Vec2Processor.from_pretrained("ABDALLALSWAITI/wav2vec2-large-xlsr-arabic")
model = Wav2Vec2ForCTC.from_pretrained("ABDALLALSWAITI/wav2vec2-large-xlsr-arabic")
# Load audio
audio_input, sample_rate = librosa.load("path_to_audio.wav", sr=16000)
# Process audio
input_values = processor(audio_input, sampling_rate=16000, return_tensors="pt").input_values
# Get predictions
with torch.no_grad():
logits = model(input_values).logits
# Decode predictions
predicted_ids = torch.argmax(logits, dim=-1)
transcription = processor.decode(predicted_ids[0])
print(transcription)
Please refer to the original model kmfoda/wav2vec2-large-xlsr-arabic for training data information.
Please refer to the original model for information about limitations and potential biases.