Skip to main content

Python Thai ASR

Project description

pythaiasr

Python Thai ASR

I made a simple python package for Thai ASR. I used model from chompk/wav2vec2-large-xlsr-thai-tokenized.

Google Colab: Link Google colab

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pythaiasr-0.1.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

pythaiasr-0.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file pythaiasr-0.1.tar.gz.

File metadata

  • Download URL: pythaiasr-0.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for pythaiasr-0.1.tar.gz
Algorithm Hash digest
SHA256 60c43c5d4a51de7e41d0e6b52572dc9020fdb964d8506dd2cbecec4c4fc76e3f
MD5 80353ea5d83b0e6e45a27487684af03a
BLAKE2b-256 7b11ff8e01b092eac8ed4ed73aab5f95744310e6348fc1b05587be08474e75ec

See more details on using hashes here.

Provenance

File details

Details for the file pythaiasr-0.1-py3-none-any.whl.

File metadata

  • Download URL: pythaiasr-0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for pythaiasr-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fe83330f5194ad4f0da230039fb80a48008eb87738481580e29fd00a839a1580
MD5 c77e64f332747dbb423c8dd744334d10
BLAKE2b-256 55f132e82c600e24bc0bd2edddadc550828fabeb95a93d8deac27a57d6389550

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page