krama-asr-khmer-v1
a hybrid ASR model for Khmer speech recognition
2 min read
The 345M-parameter krama-asr-khmer-v1 handles automatic speech recognition (ASR) for Khmer. Its architecture combines a Google EmbeddingGemma-2 Conformer audio tower, a CTC Reader, and a causal cluster decoder. Trained on 854.59 hours of Khmer audio across seven domains with a 3,072-token vocabulary, the model transcribes short- and medium-length Khmer audio clips at high speed on both CPUs and GPUs.
Key features
- Base architecture: Google EmbeddingGemma-2 with a 12-layer Conformer audio tower (d=1024).
- Dataset size: Trained on 349,305 clips totaling over 854 hours of audio.
- Two decoding modes: Fast greedy CTC (default) or Beam-5 with a causal decoder.
- Efficiency: High processing speed (around 0.05x RTF on a standard CPU).
What you can do
- Speech recognition: Transcribe Khmer audio recordings into text using a Python script.
- Integration: Embed the model into audio processing pipelines and local services.
Example
import torch
from krama_asr import load_model, transcribe
device = "cuda" if torch.cuda.is_available() else "cpu"
model, tokens = load_model("Nukthean/krama-asr-khmer-v1", device=device)
# Быстрый greedy CTC (по умолчанию)
text = transcribe(model, tokens, "sample.wav")
print(text)Read more
Details• Benchmarks: CER ranges from 2.04% to 7.12% depending on the test set.
• Hardware requirements: Supports CPU and GPU (including bf16 mixed precision).
• Limitations: Requires 16 kHz mono audio; numbers are output as words; spacing between words is minimal.










Comments