/ Модель

Характеристики

Параметры
905 млн
Размер весов
6,2 ГБ
Лицензия
CC BY-NC 4.0
Архитектура
whisper · dense
Базовая модель
whisper-large-v3
Библиотека
transformers
Опубликована
27 фев 2026

whisper-quran-v1

Распознавание речиАудио → текст3 профессии

Дообученная Whisper Large-v3 для транскрибации чтения Корана на арабском языке и распознавания аятов.

212скачиваний за 30 дней2лайкавеса обновлены20 апр 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Распознавание речи» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Whisper Quran v1 — модель распознавания арабской речи, созданная дообучением Whisper Large-v3 для транскрибации чтения Корана. По карточке, она обучена на профессиональных чтениях пяти чтецов и проверена на записях 19 чтецов, включая тех, чьи записи не входили в обучение. Модель содержит около 905,2 млн параметров и принимает аудио, выдавая текст на арабском языке.

Модель предназначена для распознавания аятов при чтении Корана, в том числе в приложениях с отслеживанием текста в реальном времени. В карточке приведён результат WER 5,74% для этого чекпойнта; для более точной работы с длинными записями рекомендуется подавать аудио фрагментами по 5–10 секунд. Указана проверка в системе отслеживания аятов на умных очках.

Ограничения включают ухудшение транскрибации длинных аятов без разбиения на фрагменты, систематическую ошибку для одной фразы, неточности в диакритике и слабое распознавание обычной арабской речи. Обучение ориентировано преимущественно на чтение Хафс ‘ан ‘Асым; другие варианты чтения отдельно не охвачены. Лицензия CC BY-NC 4.0 разрешает использование с указанием авторства, но запрещает коммерческое использование.

Сценарии применения

  • транскрибация чтения Корана на арабском языке
  • распознавание аятов по аудиозаписи чтения
  • отслеживание текущего аята в реальном времени
  • распознавание чтения Корана в приложениях для умных очков

Ограничения

На длинных аятах без разбиения аудио на фрагменты распознавание может терять точность; встречаются систематическая ошибка в одной фразе и неточности в огласовках. Модель специализирована на чтении Корана в варианте Хафс ‘ан ‘Асым и плохо подходит для обычной арабской речи и других вариантов чтения.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Whisper Quran v1 — Arabic Quranic Speech Recognition

The first open-source, production-tested Whisper Large-v3 model fine-tuned specifically for Quran recitation.

Fine-tuned on professional recitations from 5 world-renowned Qurʾān reciters, achieving 5.35% WER on held-out evaluation data. Tested across 19 reciters (including 14 completely unseen) with strong generalization. Deployed and validated in a real-time verse-tracking system on smart glasses.

Key Results

MetricValue
Word Error Rate (WER)5.35% (best) / 5.74% (this checkpoint)
Cross-reciter generalization19/19 reciters produce usable transcription
Short ayah accuracy (<10 words)~97% across all 19 reciters
Medium ayah accuracy (10-20 words)~88% across all 19 reciters
Real-time verse matchingScore 1.00 (perfect) on live recitation
Base modelopenai/whisper-large-v3 (1.55B parameters)
Training data5 reciters × 6,236 ayahs from Buraaq/quran-md-ayahs

What Makes This Model Different

Tarteel AIAcademic PapersOther HF ModelsThis Model
Architecturewhisper-base/tinyVariouswhisper-large-v3whisper-large-v3
Training dataCrowd-sourced amateursSmall / privateTarteel everyayahProfessional reciters
Reciter diversity1,200+ amateurs2-1036 pros5 trained + 14 unseen validated
Open weights✅❌✅ (no WER docs)✅ with full pipeline + benchmarks
Production testedApp onlyResearchNoReal-time smart glasses system
Reproducible❌❌Partial✅ full training notebook

Training Details

Reciters (Phase 1)

#ReciterStyleOrigin
1Mishary Rashid AlafasyModern MurattalKuwait
2Abdurrahman As-SudaisHaramain ImamSaudi Arabia
3Mahmoud Khalil Al-HusaryClassical MurattalEgypt
4Mahmoud Khalil Al-HusaryMujawwad (slow, melodic)Egypt
5Muhammad Siddiq Al-MinshawyClassical MurattalEgypt

This covers Gulf, Saudi Haramain, and Egyptian classical styles — the three dominant recitation traditions worldwide.

Training Configuration

ParameterValue
Base modelopenai/whisper-large-v3
DatasetBuraaq/quran-md-ayahs (ayah-level aligned)
Training samples~31,180 (5 reciters × 6,236 ayahs)
Evaluation samples115 (held-out split)
Max steps5,000
Best checkpointStep 3,500 (5.35% WER)
Released checkpointStep 4,500 (5.74% WER)
Learning rate1e-5 with warmup
Batch size8 (effective, with gradient accumulation)
Precisionbf16
GPUAMD Radeon RX 7900 XTX (24 GB)
Training time~38 hours

WER Progression

StepWERNotes
1,00034.46%Early training
1,50015.84%Rapid improvement
2,00010.89%
2,5007.92%
3,0009.90%Eval variance (small eval set)
3,5005.35%Best checkpoint
4,0009.11%Eval variance
4,5005.74%Released checkpoint

The oscillation between checkpoints is due to the small evaluation set (115 samples). Both 3,500 and 4,500 are strong models.

Cross-Reciter Evaluation (19 Reciters)

Tested on 10 ayahs per reciter spanning short, medium, and long verses. Reciters marked with ✅ were in the training set; all others are completely unseen.

Trained Reciters (5)

ReciterShort AyahsMedium AyahsLong Ayahs
✅ AlafasyPerfectPerfectCore words correct, tail drift
✅ As-SudaisPerfectPerfectCore words correct, tail drift
✅ Al-HusaryPerfectPerfectCore words correct, tail drift
✅ Al-Husary (Mujawwad)PerfectPerfectCore words correct, tail drift
✅ Al-MinshawyPerfectPerfectCore words correct, tail drift

Unseen Reciters (14) — Zero-Shot Generalization

ReciterShort AyahsMedium AyahsLong Ayahs
Abdul Basit (Egyptian)Near perfectGoodDrift
Maher Al-Muaiqly (Saudi)Near perfectGoodDrift
Muhammad Jibreel (Egyptian)GoodGoodDrift
Ali Jaber (Saudi)GoodGoodDrift
Saood Ash-Shuraym (Saudi)GoodGoodDrift
Ayman Sowaid (Average style)Near perfectNear perfectDrift
Abdullah Basfar (Saudi)ExcellentGoodDrift
Hani Ar-Rifai (Saudi)Minor diacriticsGoodMore drift
Fares Abbad (Saudi)Minor errorsGoodDrift
Nasser Al-Qatami (Kuwaiti)GoodGoodDrift
Yasser Ad-Dossary (Saudi)GoodGoodDrift
Ghamadi (Saudi)GoodGoodDrift
Alafasy 64kbps (low bitrate)Identical to 128kbps——
Abu Bakr Ash-Shatri (Saudi)GoodGoodDrift

Key finding: Ayman Sowaid (who recites like an average person, not a professional) scored near-perfect — this confirms the model works for everyday reciters, not just professionals.

Long ayah drift is expected and is solved in production by chunking audio into 10-second windows.

Live Production Results

This model has been deployed in a real-time Quran verse tracking system running on G2 smart glasses. The pipeline processes 10-second audio chunks through Whisper, then matches output against all 6,236 Quran ayahs using Token F1 + IDF-weighted scoring.

Real-Time Matching Scores (Live Recitation)

SurahVerses TrackedMatch QualityNotes
Al-Fatiha (1)1:1 → 1:7Score 0.69–1.00Perfect tracking
Ar-Rahman (55)55:37 → 55:56Score 1.00Perfect on refrain verse
An-Nazi'at (79)79:12 → 79:46Score 0.43–0.88Full surah tracked

Example from live log:

Whisper: "فَبِأَيِّ آلَاءِ رَبِّكُمَا تُكَذِّبَانِ"
Match:   [55:13] score=1.00 F1=1.00 IDF=1.00 coverage=100%

The 10-second chunking eliminates the long-ayah drift problem entirely — every chunk contains 5-15 words, which is the model's sweet spot.

Usage

Hugging Face Inference Endpoint (custom handler, recommended)

This repo now includes a custom handler.py for HF Inference Endpoints that supports:

  • micro-batching concurrent requests on one GPU worker
  • low-latency queue window (ASR_BATCH_WINDOW_MS)
  • bounded batching (ASR_MAX_BATCH_SIZE)
  • output shape compatible with clients expecting { text, chunks }

Endpoint configuration

Set your endpoint to use this repository revision and custom handler.

Optional environment variables:

VariableDefaultDescription
ASR_BATCH_WINDOW_MS35Queue window to coalesce near-simultaneous requests into one forward pass
ASR_MAX_BATCH_SIZE4Max requests per micro-batch
ASR_REQUEST_TIMEOUT_S45Per-request queue wait timeout

The handler accepts raw audio/wav bytes or JSON payloads with:

  • inputs (base64/string/bytes audio), and optional
  • parameters (language, task, return_timestamps, chunk_length_s, temperature)

Basic Transcription

from transformers import pipeline

pipe = pipeline(
    "automatic-speech-recognition",
    model="wasimlhr/whisper-quran-v1",
    device=0  # GPU, or -1 for CPU
)

result = pipe(
    "recitation.wav",
    generate_kwargs={"language": "ar", "task": "transcribe"}
)
print(result["text"])

From Audio Array (No ffmpeg Required)

import librosa

audio, sr = librosa.load("recitation.wav", sr=16000)
result = pipe(
    {"array": audio, "sampling_rate": 16000},
    generate_kwargs={"language": "ar", "task": "transcribe"}
)
print(result["text"])

Direct Model Usage (Full Control)

import torch
import librosa
from transformers import WhisperProcessor, WhisperForConditionalGeneration

processor = WhisperProcessor.from_pretrained("wasimlhr/whisper-quran-v1")
model = WhisperForConditionalGeneration.from_pretrained(
    "wasimlhr/whisper-quran-v1",
    torch_dtype=torch.float16
).to("cuda")

audio, sr = librosa.load("recitation.wav", sr=16000)
inputs = processor(audio, sampling_rate=16000, return_tensors="pt")
input_features = inputs.input_features.to("cuda").half()

with torch.no_grad():
    predicted_ids = model.generate(
        input_features,
        language="ar",
        task="transcribe",
    )

text = processor.batch_decode(predicted_ids, skip_special_tokens=True)[0]
print(text)

Production Chunking (Recommended)

For real-time applications, send audio in 5-10 second chunks rather than full recordings. This eliminates long-ayah drift and keeps transcription in the model's optimal accuracy range:

import numpy as np

CHUNK_SECONDS = 10
SAMPLE_RATE = 16000

audio, sr = librosa.load("long_recitation.wav", sr=SAMPLE_RATE)
chunks = [
    audio[i:i + CHUNK_SECONDS * SAMPLE_RATE]
    for i in range(0, len(audio), CHUNK_SECONDS * SAMPLE_RATE)
]

for i, chunk in enumerate(chunks):
    result = pipe(
        {"array": chunk, "sampling_rate": SAMPLE_RATE},
        generate_kwargs={"language": "ar", "task": "transcribe"}
    )
    print(f"Chunk {i}: {result['text']}")

Known Limitations

  1. Long ayahs (20+ words): Transcription drifts after ~15 words when processing full-length audio. Solved by chunking in production.

  2. Systematic training artifact: The phrase "وَإِيَّاكَ نَسْتَعِينُ" (Fatiha 1:5) consistently outputs as "وَإِنَّيِّيكَنَ اسْتَعِينِ" across all reciters — a known training artifact.

  3. Diacritics: The model sometimes produces slightly incorrect tashkeel (vowel marks). The core consonantal text is almost always correct, which is sufficient for verse identification.

  4. Non-Quran audio: The model is specialized for Quran recitation. General Arabic speech will produce poor results. Whisper's hallucination tokens ("شكرا", "موسيقى") appear on non-speech audio.

  5. Single Qira'a: Trained primarily on Hafs 'an 'Asim readings. Warsh, Qalun, and other qira'at are not specifically covered.

Deployment Options

OptionCostLatencyBest For
HuggingFace Inference Endpoint (GPU)~$0.60/hr~2-3s per chunkProduction apps
HuggingFace Inference Endpoint (CPU)~$0.06/hr~8-10s per chunkBudget / low traffic
Replicate / Modal (serverless)~$0.0002/sec~2-3s per chunkIntermittent use
Self-hosted (Docker + GPU)Hardware cost~2-3s per chunkPrivacy, offline
faster-whisper (CTranslate2, CPU)VPS ~$5/mo~10s per chunkSingle user, budget

Citation

@misc{whisper-quran-v1,
  title={Whisper Quran v1: Fine-tuned Whisper Large-v3 for Quranic Arabic Speech Recognition},
  author={Abdul Rahman Nasim},
  year={2026},
  url={https://huggingface.co/wasimlhr/whisper-quran-v1},
  note={Fine-tuned on Buraaq/quran-md-ayahs dataset}
}

@article{radford2022whisper,
  title={Robust speech recognition via large-scale weak supervision},
  author={Radford, Alec and Kim, Jong Wook and Xu, Tao and Brockman, Greg and McLeavey, Christine and Sutskever, Ilya},
  journal={arXiv preprint arXiv:2212.04356},
  year={2022}
}

Acknowledgments

  • OpenAI for the Whisper architecture and pre-trained weights
  • Buraaq for the comprehensive ayah-level Quran recitation dataset
  • The Quran reciter community for preserving and sharing these recordings

License

This project and the fine-tuned Whisper model (wasimlhr/whisper-quran-v1) are free for personal, educational, and non-commercial use only. This includes mosques, madaris, Islamic schools, and non-profit organizations. Commercial use is strictly prohibited without prior written permission. This applies to the model weights, the application code, and any derivative works. For commercial licensing inquiries, contact via GitHub: wasimlhr/taraweeh-companion-g2

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Класс архитектуры
WhisperForConditionalGeneration
Ревизия весов
dcbfa13

0 моделей