wav2vec 2.0 XLS-R 128 (300m) fine-tuned on Speech-MASSIVE - fr-FR

Speech-MASSIVE is a multilingual Spoken Language Understanding (SLU) dataset comprising the speech counterpart for a portion of the MASSIVE textual corpus. Speech-MASSIVE covers 12 languages. It includes spoken and written utterances and is annotated with 60 intents. The dataset is available on HuggingFace Hub.

This is the facebook/wav2vec2-xls-r-300m model fine-tuned on the fr-FR language.

Usage

You can use the model directly in the following manner:

import torch
import librosa
from transformers import AutoModelForAudioClassification, AutoFeatureExtractor

## Load an audio file
audio_array, sr = librosa.load("path_to_audio.wav", sr=16000)

## Load model and feature extractor
model = AutoModelForAudioClassification.from_pretrained("alkiskoudounas/xls-r-128-speechmassive-fr-FR")
feature_extractor = AutoFeatureExtractor.from_pretrained("facebook/wav2vec2-xls-r-300m")

## Extract features
inputs = feature_extractor(audio_array.squeeze(), sampling_rate=feature_extractor.sampling_rate, padding=True, return_tensors="pt")

## Compute logits
logits = model(**inputs).logits
Downloads last month
0
Safetensors
Model size
316M params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for alkiskoudounas/xls-r-128-speechmassive-fr-FR

Finetuned
(626)
this model

Dataset used to train alkiskoudounas/xls-r-128-speechmassive-fr-FR

Collection including alkiskoudounas/xls-r-128-speechmassive-fr-FR