/viet-asr

VietASR - Vietnamese Automatic Speech Recognition

Primary LanguagePython

VietASR (Vietnamese Automatic Speech Recognition)

⚡ Some experiment with NeMo

The pretrained model on this repo was trained with ~100 hours Vietnamese speech dataset, was collected from youtube, radio, call center(8k), text to speech data and some public dataset (vlsp, vivos, fpt). It is very small model (13M parameters) make it inference so fast ⚡

Installation

  • Update & install linux libs:
apt-get update && apt-get install -y libsndfile1 ffmpeg
  • Python libs:
pip install -r requirements.txt
# cpu only, you can install CUDA version if you have NVidia GPU
pip install torch==1.8.1+cpu torchvision==0.9.1+cpu torchaudio==0.8.1 -f https://download.pytorch.org/whl/torch_stable.html
  • Install kemlm for LM decoding (only support Linux)
pip install https://github.com/kpu/kenlm/archive/master.zip

Transcribe audio file

python infer.py audio_samples # will transcribe audio file in folder: audio_samples

Run web application

  • Run app:
python app.py # app will run on address: https://localhost:5000

App

Video demo

TODO

  • Conformer Model
  • Data augumentation: speed, noise, pitch shift, time shift,...
  • FastAPI
  • Add Dockerfile

Citation

  @article{kuchaiev2019nemo,
    title={Nemo: a toolkit for building ai applications using neural modules},
    author={Kuchaiev, Oleksii and Li, Jason and Nguyen, Huyen and Hrinchuk, Oleksii and Leary, Ryan and Ginsburg, Boris and Kriman, Samuel and Beliaev, Stanislav and Lavrukhin, Vitaly and Cook, Jack and others},
    journal={arXiv preprint arXiv:1909.09577},
    year={2019}
  }