/ Модель

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

Параметры
403 млн
Лицензия
MIT
Архитектура
wav2vec2-bert · dense
Базовая модель
w2v-bert-2.0
Библиотека
transformers
Опубликована
29 ноя 2026

quran-phoneme-w2v-bert

Распознавание речиАудио → текст
103скачиваний за 30 дней0лайковвеса обновлены1 дек 2026

Описание модели

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

Модель распознаёт фонемы в аудио чтения Корана и помогает находить слова, отличающиеся от допустимых вариантов произношения.

uabbas79/quran-phoneme-w2v-bert — дообученная модель распознавания фонем чтения Корана, созданная на основе facebook/w2v-bert-2.0. Это модель Wav2Vec2-BERT с CTC-декодированием и примерно 402,7 млн параметров; она принимает аудио, приводит его к частоте 16 кГц и выдаёт последовательность фонем. Модель обучалась на записях профессиональных чтецов, аудио из приложения и записях 41 чтеца; целевой язык — арабский, чтение Хафса от ‘Асима.

Модель предназначена для транскрибирования фонем коранической рецитации и поиска слов, произношение которых отличается от всех допустимых чтений. В README указаны результаты на Quran Tajweed Benchmark: PER 0,61% и 1,57% ошибочно отмеченных правильных рецитаций при пороге 0,3. В стандартном режиме отмечается не более одного слова на запись; режим --all_words позволяет отметить несколько. Для вердиктов по словам требуется карта допустимых чтений аятов из бенчмарка. Лицензия модели — MIT.

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

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

Ограничения

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

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Бенчмарки пользователейпока нет

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

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

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

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

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

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

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

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

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

Открыть на Hugging Face

Quran recitation phoneme model (w2v-BERT 2.0, CTC) — v4.1

Listens to Quran recitation (Hafs 'an 'Asim) and writes down the sounds that were recited, including short vowels, vowel length and sukun, without being told the ayah. With the ayah's text it can also point to words that were recited differently from every legal reading.

  • Architecture: Wav2Vec2BertForCTC (606M parameters), fine-tuned from facebook/w2v-bert-2.0. Input: 16 kHz mono audio. One output frame every 40 ms.
  • Output units: the 43 phoneme symbols of obadx/muaalem-model-v3_2 (vocab.json, blank = [PAD] = 0). A long vowel appears as a repeated madd letter (e.g. َاا).

Versions

VersionWhat changedTest PERRecitations wrongly flagged (thr 0.3)
v4.1 (current)inference.py only, same weights as v4: on the benchmark, at most one word per recitation is flagged, the one with the highest score (--all_words restores v4). Threshold 0.0780.61 %1.57 %
v4Stage 3: more reciters (fawazahmed0/quran-audio), training for band-limited audio, new feature normalisation. inference.py: reciter restarts removed. Word-verdict threshold for the checker score: 0.0780.61 %1.57 %
v3Word-verdict fix in inference.py: the iqlab / ikhfa meem (۾) counts as م. Same weights as v21.22 %2.25 %
v2Stage 2: continued training on app recordings (tarteel-ai/tlog)1.22 %2.19 %
v1Stage 1: studio recitation only1.44 %2.58 %

Each version is a tag of this repository: python inference.py --revision v3 recitation.wav loads an older one. v4 needs its own inference.py (the feature normalisation changed); older versions need theirs.

Use

pip install torch torchaudio "transformers>=4.46" soundfile numpy huggingface_hub
python inference.py recitation.wav
# {"audio": "recitation.wav", "phonemes": "...", "tj3": "..."}

inference.py reads the audio, resamples it to 16 kHz if needed and decodes greedily. phonemes is the model's own symbol string; tj3 is the same in the Quran Tajweed Benchmark's phoneme tokens.

Reciter restarts. Reciters often go back and re-read part of an ayah. tj3 keeps the passage once: when a passage of at least 6 phonemes is immediately read again (the first attempt may stop early), the first attempt is dropped. Repeats that belong to the ayah's text continue differently and are kept. No ayah text is used for this.

Word verdicts on the Quran Tajweed Benchmark

python inference.py --manifest BENCH/manifests/<tier>.jsonl.gz \
    --scorer BENCH_REPO/scorer/score_v4_bench.py --out hyps.jsonl
python BENCH_REPO/scorer/score_v4_bench.py --bench BENCH --hyp hyps.jsonl --word-source words --threshold 0.078

BENCH is a benchmark config written out with the benchmark's scorer/parquet_to_bench.py. A word is a candidate when the greedy decode of that word matches none of its legal readings. Each candidate is re-scored on the audio: the log-likelihood of what was decoded minus that of the best legal reading, per frame, with the neighbouring words held fixed. The word is flagged when the score is at least the threshold.

One flag per recitation (v4.1). Each of the benchmark's mistake recitations holds one mistake, and it counts as pointed to only when that word and no other is flagged. A mistake often also lowers a neighbouring word's score, so inference.py keeps only the highest-scoring word of each recitation and gives every other word -1. A correct recitation is flagged exactly when it was flagged before, so false alarms per recitation do not change. For recitations that may hold several mistakes, run with --all_words.

Threshold 0.078 is for the leaderboard's checker score (correct recitations left alone and mistakes pointed to, weighted equally). It was chosen on development data only (correct_t1p_dev and development recordings with real mistakes), before any test data was scored. Use a higher threshold, such as 0.3, when false flags matter more than missed mistakes.

Training

Three stages, each continuing from the previous one.

Stage 1, studio recitation.

  • Data: obadx/muaalem-annotated-v3 (MIT) and its phoneme labels: recordings of published recitations by professional reciters.
  • Held out of training: three of its reciters (moshaf 11.0, 13.0, 29.0), a fixed set of surahs, and clips longer than 25 s or with transcript match ratio below 0.8.
  • Recipe: CTC, all layers trained, AdamW, learning rate 1.5e-5 (500 warm-up steps, linear decay), batches of up to 360 s of audio, bf16, 7,500 steps on one GPU. Speed perturbation (0.9 to 1.15) on half the clips; on 60 % of clips one of babble, noise, reverberation or a simulated phone channel.

Stage 2, app recordings. Stage-1 data plus clips from the clean split of tarteel-ai/tlog (CC-BY-4.0), labelled only with the ayah.

  • Labels: for each clip, the model scored every whole-ayah reading attested in muaalem-annotated-v3, and the best fit became the label. A label is therefore always a legal reading, never the reciter's own version.
  • Filtering: a clip was kept only when the model's free transcription fitted the audio no better than that reading did, by at most 2 nats: 44,555 clips (84.5 h), repeated 4 times. Learning rate 1e-5, 5,000 steps.

Stage 3, more reciters (v4). Stage-2 data plus fawazahmed0/quran-audio (CC0): ayah recordings by 41 reciters, 195,330 clips (545 h), labelled and filtered like stage 2.

  • Held out: every reciter of the Quran Tajweed Benchmark (and of a held-out ASR benchmark), and non-Hafs recitations, were removed before labelling.
  • Band-limited audio: on 30 % of clips the audio is resampled to 5–12 kHz and back, as in older or compressed recordings.
  • Feature normalisation: the per-bin variance of the log-mel features is floored at its median bin. Plain per-bin normalisation blew up the near-empty high bins of band-limited recordings. 10 % feature-channel masking.
  • Recipe: 5,000 steps (of a 6,000-step schedule), then 15,000 steps with the new normalisation; both learning rate 1.5e-5, 500 warm-up steps, linear decay.
  • Model selection: the checkpoint with the lowest phoneme error rate on correct_t1p_dev (step 15,000); restart removal (minimum length 6) and the threshold (0.078) were also chosen on development data.

No benchmark audio was used for training in any stage.

Results

Scored with the benchmark's official scorer on its public correct-recitation configs, with the inference.py of each version. correct_t1p_test (1,780 recitations by 16 professional reciters, none of them in the training data) was scored once, after the checkpoint, restart removal and threshold were fixed.

correct_t1p_testv4.1v4v3muaalem-model-v3_2 (greedy)
Phoneme error rate (closest legal reading)0.61 %0.61 %1.22 %2.11 %
Same, first and last word of the clip not counted0.40 %0.40 %0.75 %1.66 %
Words wrongly flagged, threshold 0.0780.68 %0.79 %——
Recitations with any word wrongly flagged, threshold 0.0784.66 %4.66 %——
Words / recitations wrongly flagged, threshold 0.30.29 % / 1.57 %0.29 % / 1.57 %0.35 % / 2.25 %—

For v3 at its checker threshold 0.1: 1.08 % of words and 6.74 % of recitations wrongly flagged.

Other public configs (PER, v4 / v3): correct_t1p_dev 0.31 % / 0.86 % (used for selection), t1_correct_unseen 0.17 % / 0.13 %, t1x_correct_seen_in_mix_v1 0.52 % / 1.20 %.

These are measured on correct recitation only. The benchmark's recordings with mistakes are private and scored by its maintainers.

Limitations

  • Trained mostly on professional recitation by adult men. It has not been validated on learners, children, women's voices or phone recordings, where it is expected to be less accurate and to flag more correct words.
  • Hafs 'an 'Asim only.
  • With the default one flag per recitation, a recitation with two mistakes gets only one of them flagged (--all_words flags all).
  • Word verdicts need the ayah's legal-reading lattice from the benchmark's word map; plain transcription does not.
  • Restart removal can, rarely, drop a passage the reciter really read twice in a row.
  • A flag means the audio differs from every legal reading. It is not a ruling on tajweed: check it with a teacher.

Licence

MIT, as are the base model, the stage-1 training data and the phoneme labels it builds on.

Stage 2 used audio from tarteel-ai/tlog by Tarteel AI, under CC-BY-4.0. Stage 3 used audio from fawazahmed0/quran-audio (CC0). The audio was resampled to 16 kHz and given pseudo-labels; it is not redistributed here.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
Wav2Vec2BertForCTC
Ревизия весов
0582e1a

0 моделей