Downloads · 30 days
9
0% of all-time downloads
tinkvu/wav2vec2-large-xlsr-amharic-healthcare
wav2vec2-large-xlsr-amharic-healthcare is a machine learning model from tinkvu. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
This model is a fine-tuned version of agkphysics/wav2vec2-large-xlsr-53-amharic for Amharic automatic speech recognition (ASR) in the healthcare domain. It is trained to recognize domain-specific vocabulary commonly u…
Downloads · 30 days
9
0% of all-time downloads
All-time downloads
2.3K
Public
Parameters
316M
11.4 GB on disk
Likes
1
Public
Click a slice to open those files.
.pt7.6 GB · 60%
From the Hugging Face model README
This model is a fine-tuned version of agkphysics/wav2vec2-large-xlsr-53-amharic for Amharic automatic speech recognition (ASR) in the healthcare domain. It is trained to recognize domain-specific vocabulary commonly used in clinical or health-related audio.
agkphysics/wav2vec2-large-xlsr-53-amharicam)from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor
import torch
import torchaudio
model = Wav2Vec2ForCTC.from_pretrained("tinkvu/wav2vec2-large-xlsr-amharic-healthcare")
processor = Wav2Vec2Processor.from_pretrained("tinkvu/wav2vec2-large-xlsr-amharic-healthcare")
# Load and preprocess audio
speech_array, sampling_rate = torchaudio.load("your_audio_file.wav")
inputs = processor(speech_array[0], sampling_rate=sampling_rate, return_tensors="pt")
# Perform inference
with torch.no_grad():
logits = model(**inputs).logits
predicted_ids = torch.argmax(logits, dim=-1)
transcription = processor.batch_decode(predicted_ids)[0]
print(transcription)