We are open-sourcing our Conformer-based
W2v-BERT 2.0 speech encoder
as described in Section 3.2.1 of the
paper
, which is at the core of our Seamless models.
This model was pre-trained on 4.5M hours of unlabeled audio data covering more than 143 languages. It requires finetuning to be used for downstream tasks such as Automatic Speech Recognition (ASR), or Audio Classification.
This model and its training are supported by 🤗 Transformers, more on it in the
docs
.
🤗 Transformers usage
This is a bare checkpoint without any modeling head, and thus requires finetuning to be used for downstream tasks such as ASR. You can however use it to extract audio embeddings from the top layer with this code snippet:
from transformers import AutoFeatureExtractor, Wav2Vec2BertModel
import torch
from datasets import load_dataset
dataset = load_dataset("hf-internal-testing/librispeech_asr_demo", "clean", split="validation")
dataset = dataset.sort("id")
sampling_rate = dataset.features["audio"].sampling_rate
processor = AutoProcessor.from_pretrained("facebook/w2v-bert-2.0")
model = Wav2Vec2BertModel.from_pretrained("facebook/w2v-bert-2.0")
# audio file is decoded on the fly
inputs = processor(dataset[0]["audio"]["array"], sampling_rate=sampling_rate, return_tensors="pt")
with torch.no_grad():
outputs = model(**inputs)
To learn more about the model use, refer to the following resources:
w2v-bert-2.0 huggingface.co is an AI model on huggingface.co that provides w2v-bert-2.0's model effect (), which can be used instantly with this facebook w2v-bert-2.0 model. huggingface.co supports a free trial of the w2v-bert-2.0 model, and also provides paid use of the w2v-bert-2.0. Support call w2v-bert-2.0 model through api, including Node.js, Python, http.
w2v-bert-2.0 huggingface.co is an online trial and call api platform, which integrates w2v-bert-2.0's modeling effects, including api services, and provides a free online trial of w2v-bert-2.0, you can try w2v-bert-2.0 online for free by clicking the link below.
facebook w2v-bert-2.0 online free url in huggingface.co:
w2v-bert-2.0 is an open source model from GitHub that offers a free installation service, and any user can find w2v-bert-2.0 on GitHub to install. At the same time, huggingface.co provides the effect of w2v-bert-2.0 install, users can directly use w2v-bert-2.0 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.