quran-asr-small

Abdou/quran-asr-small

作者
Abdou
任务
语音识别
下载量
0
点赞数
10
趋势分
6
许可证
mit
收录时间
2026/11/4

license: mit language:

  • ar pipeline_tag: automatic-speech-recognition library_name: sherpa-onnx tags:
  • quran
  • quranic-recitation
  • arabic
  • speech-recognition
  • ctc
  • conformer
  • onnx
  • sherpa-onnx
  • on-device datasets:
  • tarteel-ai/tlog
  • IqraEval/Iqra_train model-index:
  • name: quran-asr-small results:
    • task: type: automatic-speech-recognition dataset: name: Quran-Lab Quranic ASR Benchmark type: Quran-Lab/quranic-asr-benchmark metrics:
      • type: wer value: 4.49 name: WER (overall)
      • type: cer value: 2.17 name: CER (overall)

quran-asr-small

A 33M-parameter Quran recitation recognizer that runs offline on a phone (36 MB int8 ONNX, sherpa-onnx). It writes the Arabic letters of what is recited, for professional reciters and ordinary people, Hafs and Warsh, slow tartil to fast hadr. Big brother of quran-asr-tiny.

Paper: Small Conformer-CTC Models for On-Device Quranic Recitation Recognition · DOI 10.5281/zenodo.23761691

4.49% WER · 2.17% CER on the Quran-Lab benchmark, #2 of 33 on the leaderboard at submission. None of the benchmark's reciters or recordings were used for training.

Error vs model size

Results

Quran-Lab benchmark, official score.py, 600 clips. WER / CER in %.

ModelParamsOverallPhoneEveryAyahQUL
zipformer_p-arabic-v3 (retrieval)66M3.46 / 1.847.56 / 1.790.00 / 0.004.40 / 3.77
quran-asr-small (int8)33M4.49 / 2.1710.45 / 2.840.69 / 0.204.61 / 3.80
fastconformer-quran115M5.41 / 2.968.88 / 2.660.93 / 0.267.78 / 5.91
NVIDIA FastConformer115M7.44 / 3.0816.77 / 5.611.50 / 0.497.61 / 4.20
Whisper large-v31.5B10.10 / 4.2626.23 / 12.395.48 / 1.794.69 / 1.83

Leaderboard

Character error by source

Reciters never seen in training (our test set, 1,000 clips): 0.30% CER, 0.46% WER.

Notes

  • The model writes Uthmani spelling. For the benchmark, output words are rewritten in standard spelling with a fixed table (spelling.json) that never changes a misrecognized word. The phone references are themselves Uthmani, where raw output scores 3.29 / 1.16.
  • One phone clip of the benchmark (36:71) turned out to be the same recording as one in our training data, uploaded twice under different ids; it is excluded from future training.
  • Greedy CTC, no language model, no lexicon, no hints.

Usage

pip install sherpa-onnx soundfile numpy scipy
python transcribe.py recitation.wav              # Uthmani letters
python transcribe.py recitation.wav --standard   # standard spelling

On Android / iOS the model loads as a sherpa-onnx zipformer CTC model (model.int8.onnx + tokens.txt).

Model and training

  • Conformer-CTC: 9 blocks, d=384, 6 heads, ×4 subsampling, 31 output tokens (Arabic letters + word separator). InterCTC after block 5 during training.
  • Data (1,532 h): 36 EveryAyah Hafs reciters (1,132 h), 3 Warsh reciters (96 h), tarteel-ai/tlog phone recordings (283 h, 200 shards, labels checked against the audio), Iqra'Eval Quranic sentences (21 h). Ordinary people are 30% of each epoch.
  • 343k steps, 20 epochs, ~33,000 h of audio seen, ~37 h on one laptop GPU (RTX 5070 Ti Laptop). AdamW 4e-4, cosine, bf16; speed, tempo (×0.75 to ×2.5), noise, reverb, low-pass and SpecAugment.
  • Released checkpoint: step 310k (lowest validation error, 0.84% CER).

Training code: code/ (config/base.yaml).

Citation

@misc{fadheli2026quranasr,
  author    = {Fadheli, Abdeladim},
  title     = {Small Conformer-CTC Models for On-Device Quranic Recitation Recognition},
  year      = {2026},
  publisher = {Zenodo},
  doi       = {10.5281/zenodo.23761691},
  url       = {https://zenodo.org/records/23761691}
}

License

MIT. Training data keeps its own terms (tlog: CC-BY-4.0).

内容来源:Hugging Face 模型卡

在 Hugging Face 查看