đ Vietnamese ASR Model
This project presents an Automatic Speech Recognition (ASR) model for Vietnamese, leveraging the wav2vec2 architecture. It's pre - trained on a large amount of Vietnamese YouTube audio and fine - tuned on a labeled dataset, offering high - quality speech recognition capabilities.
đ Quick Start
You can quickly start using this model by clicking the following button to open it in Google Colab:

⨠Features
- Powerful Architecture: Utilizes the wav2vec2 architecture, which is effective for speech recognition tasks.
- Large - scale Pre - training: Pre - trained on 13k hours of un - labeled Vietnamese YouTube audio, enabling the model to capture rich language features.
- Fine - tuning: Fine - tuned on 250 hours of labeled VLSP ASR dataset, improving the accuracy of speech recognition.
đĻ Installation
To use this model, you need to install the following dependencies:
đģ Usage Examples
Basic Usage
from transformers.file_utils import cached_path, hf_bucket_url
from importlib.machinery import SourceFileLoader
from transformers import Wav2Vec2ProcessorWithLM
from IPython.lib.display import Audio
import torchaudio
import torch
model_name = "nguyenvulebinh/wav2vec2-base-vi-vlsp2020"
model = SourceFileLoader("model", cached_path(hf_bucket_url(model_name,filename="model_handling.py"))).load_module().Wav2Vec2ForCTC.from_pretrained(model_name)
processor = Wav2Vec2ProcessorWithLM.from_pretrained(model_name)
audio, sample_rate = torchaudio.load(cached_path(hf_bucket_url(model_name, filename="t2_0000006682.wav")))
input_data = processor.feature_extractor(audio[0], sampling_rate=16000, return_tensors='pt')
output = model(**input_data)
print(processor.tokenizer.decode(output.logits.argmax(dim=-1)[0].detach().cpu().numpy()))
print(processor.decode(output.logits.cpu().detach().numpy()[0], beam_width=100).text)
đ Documentation
Model Description
Our models use the wav2vec2 architecture, pre - trained on 13k hours of Vietnamese YouTube audio (un - labeled data) and fine - tuned on 250 hours of labeled VLSP ASR dataset on 16kHz sampled speech audio. You can find more description here
Benchmark WER Result on VLSP T1 Testset
Property |
Details |
Model Type |
Our ASR model has two versions: base and large. |
Training Data |
Pre - trained on 13k hours of Vietnamese YouTube audio (un - labeled) and fine - tuned on 250 hours of labeled VLSP ASR dataset. |
Model Parameters License
The ASR model parameters are made available for non - commercial use only, under the terms of the Creative Commons Attribution - NonCommercial 4.0 International (CC BY - NC 4.0) license. You can find details at: https://creativecommons.org/licenses/by - nc/4.0/legalcode
Contact
If you have any questions, please contact us at nguyenvulebinh@gmail.com.

đ License
The ASR model parameters are licensed under the Creative Commons Attribution - NonCommercial 4.0 International (CC BY - NC 4.0) license. For more details, visit: https://creativecommons.org/licenses/by - nc/4.0/legalcode