wav2vec2-large-xlsr-53-th

airesearch/wav2vec2-large-xlsr-53-th – a Thai‑specific Automatic Speech Recognition (ASR) model built on top of Facebook’s wav2vec2‑large‑xlsr‑53 backbone. The model is a

airesearch 754K downloads mit Speech Recognition
Frameworkstransformerspytorch
Languagesth
Datasetscommon_voice
Tagswav2vec2automatic-speech-recognitionaudiohf-asr-leaderboardrobust-speech-eventspeechxlsr-fine-tuningdoi:10.57967/hf/0404
Downloads
754K
License
mit
Pipeline
Speech Recognition
Author
airesearch

Run wav2vec2-large-xlsr-53-th locally on a Q4KM hard drive

Accelerate your Thai ASR deployments with a pre‑loaded Q4KM hard drive. Each drive ships the airesearch/wav2vec2-large-xlsr-53-th model, processor, and tokenizers ready for out‑of‑the‑box inference....

Shop Q4KM Drives

Technical Overview

Model ID: airesearch/wav2vec2-large-xlsr-53-th – a Thai‑specific Automatic Speech Recognition (ASR) model built on top of Facebook’s wav2vec2‑large‑xlsr‑53 backbone. The model is a large‑scale, self‑supervised wav2vec 2.0 architecture that has been fine‑tuned on the Common Voice 7.0 Thai corpus. It accepts raw audio sampled at 16 kHz and directly outputs a sequence of characters or sub‑word tokens, making it a ready‑to‑use solution for Thai speech‑to‑text pipelines.

Key features and capabilities

  • End‑to‑end speech recognition without the need for a separate language model.
  • Supports both PyThaiNLP and deepcut tokenizers for flexible post‑processing (syllable‑level or word‑level).
  • Optimized for the Thai language – the model has been exposed to 133 validated hours of Thai speech, covering a wide range of accents and speaking styles.
  • Compatible with the Hugging Face transformers and torchaudio ecosystems, enabling seamless integration in Python, JavaScript, and mobile environments.

Architecture highlights

  • Base model: wav2vec2‑large‑xlsr‑53 (317 M parameters, 53‑language XLS‑R pre‑training).
  • CTC (Connectionist Temporal Classification) head for alignment‑free transcription.
  • Fine‑tuned on Thai using a combination of word‑tokenization (pythainlp.tokenize.word_tokenize) and custom cleaning scripts.
  • Processor: Wav2Vec2Processor that bundles a feature extractor (16 kHz audio) and a tokenizer tuned for Thai characters.

Intended use cases

  • Voice‑controlled assistants and chatbots for Thai‑speaking users.
  • Automatic transcription of podcasts, meetings, and broadcast media in Thai.
  • Call‑center analytics, keyword spotting, and real‑time captioning.
  • Research projects that require a high‑quality Thai ASR baseline.

Benchmark Performance

The model’s performance is evaluated on two widely recognized ASR benchmarks:

  • Common Voice 7.0 – Thai (test split)Mozilla Common Voice dataset.
  • Robust Speech Event – Dev Data – a community‑driven robustness test set (metrics not reported).

Results on the Common Voice test set are:

MetricValue
WER (Word Error Rate)0.9524 %
SER (Sentence Error Rate)1.2346 %
CER (Character Error Rate)0.1623 %

These numbers indicate a sub‑1 % WER when using the PyThaiNLP tokenizer, which is competitive with the best publicly available Thai ASR models. The low CER (0.16 %) reflects the model’s ability to capture Thai character granularity, an essential factor for languages with complex orthography. Although the Robust Speech Event metrics are not yet released, the inclusion of this benchmark signals the model’s readiness for noisy‑environment scenarios.

Hardware Requirements

Running wav2vec2‑large‑xlsr‑53‑th requires modest but non‑trivial resources due to its 317 M parameter size.

  • VRAM for inference: ~2 GB for a single audio stream (batch size = 1). Larger batches benefit from 4 GB or more.
  • Recommended GPU: NVIDIA RTX 3060, RTX 3070, or any GPU with at least 6 GB VRAM and CUDA ≥ 11.0.
  • CPU requirements: A modern multi‑core CPU (e.g., Intel i5‑10600K or AMD Ryzen 5 3600) can handle real‑time inference for short utterances when GPU is unavailable, though latency will increase.
  • Storage: The model checkpoint and processor files occupy ~2.5 GB on disk. Including the tokenizer and optional tokenizers adds another ~200 MB.
  • Performance characteristics: On a RTX 3060, the model processes ~30 ms of audio per inference step (including feature extraction), enabling near‑real‑time transcription for typical 5‑second utterances.

Use Cases

Because the model is tuned for Thai speech, it excels in any scenario where accurate, low‑latency transcription of Thai audio is required.

  • Voice assistants: Power Thai‑language Alexa‑style bots, smart‑home controllers, and mobile assistants.
  • Media transcription: Automatic captioning for Thai TV, YouTube videos, and podcasts.
  • Customer support: Real‑time transcription of call‑center conversations for sentiment analysis and quality monitoring.
  • Education: Lecture transcription and language‑learning apps that give instant feedback on pronunciation.
  • Research & development: Baseline for Thai ASR research, noise‑robustness studies, and multilingual speech‑to‑text experiments.

Training Details

The training pipeline mirrors the standard wav2vec 2.0 fine‑tuning workflow, with Thai‑specific adaptations:

  • Pre‑trained checkpoint: facebook/wav2vec2-large-xlsr-53 (53‑language XLS‑R).
  • Dataset: Thai portion of Common Voice 7.0 – 133 validated hours (≈255 total hours) after cleaning and deduplication.
  • Cleaning & tokenization: Scripts cv-preprocess.ipynb (by @tann9949) and th_common_voice_70.py apply language‑specific cleaning rules and word‑tokenization via pythainlp.
  • Training compute: Typically performed on a single NVIDIA V100 (32 GB) for 30 k steps, batch size = 8, learning rate ≈ 3e‑5, using mixed‑precision (FP16) to accelerate convergence.
  • Fine‑tuning objective: CTC loss with a Thai character vocabulary (≈80 tokens).
  • Evaluation: WER, SER, and CER reported on the Common Voice test split; optional evaluation with deepcut and PyThaiNLP tokenizers.

Licensing Information

The model card lists the CC‑BY‑SA‑4.0 license for the underlying data and model weights, while the overall license field is marked “unknown”. In practice, the CC‑BY‑SA‑4.0 terms apply:

  • Attribution: Users must give appropriate credit to airesearch and the original Common Voice contributors.
  • Share‑Alike: Any derivative work (e.g., further fine‑tuning or redistribution) must be released under the same CC‑BY‑SA‑4.0 license.
  • Commercial use: Allowed, provided the attribution and share‑alike conditions are respected.
  • Restrictions: The model cannot be relicensed under a more restrictive license without explicit permission from the original authors.

If you plan to embed the model in a proprietary product, ensure that you also distribute the license text and provide a clear attribution statement in your documentation or UI.

Pre-loaded AI models. Ready to run.

Skip the downloads. Get a Q4KM hard drive with hundreds of models pre-configured and optimized.

Shop Q4KM Hard Drives