Downloads · 30 days
8
9% of all-time downloads
DILHTWD/whisper-large-v3-turbo-hsb
whisper-large-v3-turbo-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
8
9% of all-time downloads
All-time downloads
90
Public
Parameters
809M
3.2 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors3.2 GB · 100%
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-turbo-hsb"
processor_name = "openai/whisper-large-v3-turbo"
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)