Downloads · 30 days
15
3% of all-time downloads
DILHTWD/whisper-large-v3-hsb
whisper-large-v3-hsb is a automatic speech recognition model from DILHTWD. Use it when you need speech turned into text. The card lists the license as agpl-3.0.
This model was fine-tuned on over 24 hours of transcribed upper sorbian speech to aid future research, conservation and revitalisation of the language.
Downloads · 30 days
15
3% of all-time downloads
All-time downloads
563
Public
Parameters
1.5B
18.5 GB on disk
Likes
1
Public
Click a slice to open those files.
.pt12.3 GB · 67%
From the Hugging Face model README
This model was fine-tuned on over 24 hours of transcribed upper sorbian speech to aid future research, conservation and revitalisation of the language.
To use the model, follow this example code:
import torch
import torchaudio
from transformers import WhisperProcessor, WhisperForConditionalGeneration
# Load the model and processor
model_name = "DILHTWD/whisper-large-v3-hsb"
processor_name = "openai/whisper-large-v3"
processor = WhisperProcessor.from_pretrained(processor_name)
model = WhisperForConditionalGeneration.from_pretrained(model_name)
# Load and preprocess the audio
audio, sample_rate = torchaudio.load("test.mp3")
if sample_rate != 16000:
audio = torchaudio.transforms.Resample(orig_freq=sample_rate, new_freq=16000)(audio)
input_features = processor(audio.squeeze().numpy(), sampling_rate=16000, return_tensors="pt").input_features
# Generate transcription
with torch.no_grad():
predicted_ids = model.generate(input_features)
transcription = processor.batch_decode(predicted_ids, skip_special_tokens=True)[0]
# Print the transcription
print("Transcription:", transcription)