Downloads · 30 days
3
4% of all-time downloads
keypa/whisper-small-fr-cv-100k
whisper-small-fr-cv-100k is a automatic speech recognition model from keypa. Use it when you need speech turned into text. The card lists the license as apache-2.0.
This model is a fine-tuned version of openai/whisper-small on French speech data from Common Voice.
Downloads · 30 days
3
4% of all-time downloads
All-time downloads
82
Public
Parameters
242M
967 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors967 MB · 99%
From the Hugging Face model README
This model is a fine-tuned version of openai/whisper-small on French speech data from Common Voice.
from transformers import pipeline
# Load the model
pipe = pipeline(
"automatic-speech-recognition",
model="keypa/whisper-small-fr-cv-100k",
device=0 # Use GPU (or -1 for CPU)
)
# Transcribe audio
result = pipe("path/to/your/french/audio.wav")
print(result["text"])
Or with the model and processor directly:
from transformers import WhisperProcessor, WhisperForConditionalGeneration
import torch
# Load model and processor
processor = WhisperProcessor.from_pretrained("keypa/whisper-small-fr-cv-100k")
model = WhisperForConditionalGeneration.from_pretrained("keypa/whisper-small-fr-cv-100k")
model.to("cuda") # or "cpu"
# Load audio
import librosa
audio, sr = librosa.load("audio.wav", sr=16000)
# Process
input_features = processor(audio, sampling_rate=16000, return_tensors="pt").input_features
input_features = input_features.to("cuda")
# Generate
predicted_ids = model.generate(input_features)
transcription = processor.batch_decode(predicted_ids, skip_special_tokens=True)
print(transcription[0])
This model was trained on 100k samples and achieves good performance on French speech recognition tasks.
If you use this model, please cite:
@misc{whisper-small-fr-100k,
author = {keypa},
title = {Whisper Small French Fine-tuned},
year = {2024},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/keypa/whisper-small-fr-cv-100k}}
}