Downloads · 30 days
5
0% of all-time downloads
metythorn/wav2vec2-xls-r-300m
wav2vec2-xls-r-300m is a automatic speech recognition model from metythorn. Use it when you need speech turned into text. It is set up for transformers.
- filepath: path of audio file - modelname : pretrain model path from huggingface or local - device : should be cpu or cuda but I use cpu by default - tokenized: show [PAD] in output, False by default - return: Khmer…
Downloads · 30 days
5
0% of all-time downloads
All-time downloads
3.4K
Public
Repo size
2.5 GB
Likes
0
Public
Click a slice to open those files.
.bin1.3 GB · 100%
From the Hugging Face model README
pip install sdab
# clone repo
git clone https://github.com/MetythornPenn/sdab.git
# install lib from source
pip install -e .
wget -O audio.wav https://github.com/MetythornPenn/sdab/blob/main/sample/audio.wav
from sdab import Sdab
file_path = "audio.wav"
model_name = "metythorn/khmer-asr-openslr" # or local directory path
sdab = Sdab( file_path = file_path, model_name = model_name)
print(sdab.result)
# result : ស្ពានកំពងចំលងអ្នកលើងនៅព្រីវែញជាស្ពានវេញជាងគេសក្នុងព្រសរាជាអាចកម្ពុជា
file_path: path of audio filemodel_name : pretrain model path from huggingface or localdevice : should be cpu or cuda but I use cpu by defaulttokenized: show [PAD] in output, False by defaultreturn: Khmer text from ASRlicense: apache-2.0 datasets: