Downloads · 30 days
10
2% of all-time downloads
thaiphonghuan/wav2vec2-large-vietnamese-vivos
wav2vec2-large-vietnamese-vivos is a machine learning model from thaiphonghuan. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
This repository contains a fine-tuned version of the nguyenvulebinh/wav2vec2-large-vi-vlsp2020 model on the VIVOS: Vietnamese Speech Corpus for ASR. The model is designed for Automatic Speech Recognition (ASR) in Viet…
Downloads · 30 days
10
2% of all-time downloads
All-time downloads
507
Public
Parameters
316M
1.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.3 GB · 100%
From the Hugging Face model README
This repository contains a fine-tuned version of the nguyenvulebinh/wav2vec2-large-vi-vlsp2020 model on the VIVOS: Vietnamese Speech Corpus for ASR.
The model is designed for Automatic Speech Recognition (ASR) in Vietnamese.
This model is fine-tuned from nguyenvulebinh/wav2vec2-large-vi-vlsp2020,
which is a large-scale pretrained Wav2Vec2 model for Vietnamese ASR.
You can use this model directly with the Hugging Face transformers library:
from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor
import torch
import soundfile as sf
# Load processor and model
processor = Wav2Vec2Processor.from_pretrained("your-username/your-model-repo")
model = Wav2Vec2ForCTC.from_pretrained("your-username/your-model-repo")
# Load audio file
speech, rate = sf.read("path_to_your_audio.wav")
# Preprocess
input_values = processor(speech, sampling_rate=rate, return_tensors="pt", padding=True).input_values
# Perform inference
with torch.no_grad():
logits = model(input_values).logits
# Decode prediction
predicted_ids = torch.argmax(logits, dim=-1)
transcription = processor.decode(predicted_ids[0])
print("Transcription:", transcription)
nguyenvulebinh/wav2vec2-large-vi-vlsp2020