Thai Dialect ASR
Collection
โมเดลรู้จำเสียงภาษาไทยถิ่นของ BoomBigNose Lab วัดด้วย eval_v2 มาตรฐานเดียวกันทุกระบบ • 6 items • Updated
How to use BoomBigNoseLab/w2v-bert-thai-pattani-ctc with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("automatic-speech-recognition", model="BoomBigNoseLab/w2v-bert-thai-pattani-ctc") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoProcessor, AutoModelForCTC
processor = AutoProcessor.from_pretrained("BoomBigNoseLab/w2v-bert-thai-pattani-ctc")
model = AutoModelForCTC.from_pretrained("BoomBigNoseLab/w2v-bert-thai-pattani-ctc", device_map="auto")โมเดลรู้จำเสียงภาษามลายูปัตตานี ถอดออกมาเป็นอักษรไทยแบบที่คลัง SLSCU ใช้ สร้างบน facebook/w2v-bert-2.0 แบบ character CTC
วัดด้วย protocol eval_v2 ชุดเดียวกับคู่แข่งทุกตัว (hash f1f03f053b40) ค่าเป็น CER (%) ยิ่งต่ำยิ่งดี
| ระบบ | CER |
|---|---|
| โมเดลนี้ + char 6-gram LM (beam 8, lm_w 0.3, bonus 1.0) | 12.71 |
| โมเดลนี้ greedy | 14.57 |
| typhoon-asr-qwen-1.7b-ctx (คู่แข่งที่ดีที่สุด) | 65.05 |
git clone https://github.com/Boom-Vitt/thai-dialect-asr.git && cd thai-dialect-asr && pip install -e .
# greedy
python scripts/transcribe.py --model BoomBigNoseLab/w2v-bert-thai-pattani-ctc audio.wav
# ใส่ LM (ไฟล์ lm/pattani.char6.json.gz อยู่ใน repo นี้)
python scripts/transcribe.py --model BoomBigNoseLab/w2v-bert-thai-pattani-ctc \
--lm lm/pattani.char6.json.gz --lm-w 0.3 --bonus 1.0 --beam 8 audio.wav
ถ้าใช้ transformers โดยตรง (ถอดแบบ greedy):
import torch, soundfile as sf
from transformers import AutoProcessor, Wav2Vec2BertForCTC
proc = AutoProcessor.from_pretrained("BoomBigNoseLab/w2v-bert-thai-pattani-ctc")
model = Wav2Vec2BertForCTC.from_pretrained("BoomBigNoseLab/w2v-bert-thai-pattani-ctc").eval()
audio, sr = sf.read("audio.wav") # 16 kHz mono
x = proc(audio, sampling_rate=16000, return_tensors="pt")
ids = model(**x).logits.argmax(-1)[0]
print(proc.decode(ids))
CC BY-NC-SA 4.0 (ตามข้อมูลฝึก) ใช้ได้เพื่อการวิจัยและไม่ใช่เชิงพาณิชย์ ส่วนโค้ดใน GitHub ใช้ Apache-2.0
พัฒนาโดย BoomBigNose Lab · โค้ดและชุดวัดผล: https://github.com/Boom-Vitt/thai-dialect-asr
@misc{thai_dialect_asr_2026,
title = {Thai Dialect ASR: Same-Protocol Benchmarking of Central and Regional Thai Speech Recognition},
author = {{BoomBigNose Lab}},
year = {2026},
howpublished = {\url{https://github.com/Boom-Vitt/thai-dialect-asr}}
}
Base model
facebook/w2v-bert-2.0