Skip to content

PyThaiASR v0.2

Compare
Choose a tag to compare
@wannaphong wannaphong released this 06 Sep 06:32
· 41 commits to main since this release
39d47d3

Change

  • Change model to airesearch/wav2vec2-large-xlsr-53-th #2 (Finetuning wav2vec2-large-xlsr-53 on Thai Common Voice 7.0)

PyThaiASR

Python Thai Automatic Speech Recognition

pypiLicenseDownload

PyThaiASR is a Python package for Automatic Speech Recognition with focus on Thai language. It have offline thai automatic speech recognition model from Artificial Intelligence Research Institute of Thailand (AIResearch.in.th).

License: Apache-2.0 License

Google Colab: Link Google colab

Model homepage: https://huggingface.co/airesearch/wav2vec2-large-xlsr-53-th

Install

pip install -e .

Usage

from pythaiasr import asr

file = "a.wav"
print(asr(file))

API

asr(file: str, show_pad: bool = False)
  • file: path of sound file
  • show_pad: show [PAD] in output
  • return: thai text from ASR