Skip to content

seanghay/wav2vec2-khmer-openslr

Repository files navigation

Wav2Vec2 with OpenSLR 42 (Khmer language)

[Google Colab]

image

apt update -y
apt install -y unzip tmux neovim
conda create -n w2v2 python=3.8 --yes
conda activate w2v2

# install PyTorch
conda install pytorch torchvision torchaudio pytorch-cuda=12.4 -c pytorch -c nvidia --yes

Dependencies

pip install -r requirements.txt

Training

./prepare.sh

./train.py

Inference

Download the weights via: GitHub Release

python inference.py samples/audio.wav

# => វិធាណការ៍ ដាប បំរាំ គួរចរ ក្នុង រាជធានី ភ្នំពេញដើម បី ស្វត្ឋិភាព សហគម បាន អនប័តរ យ៉ាង រ្លូន