Repository navigation
Interactive Memorization Classroom (Listen & Repeat), Full Kids Mode (Progress Islands) & 100% Offline Live Recitation (Tasmee') - #4068
Open
Yousif-GO wants to merge 1 commit into
Conversation
…xes, and Live Recitation UX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Interactive Memorization Classroom (Listen & Repeat), Full Kids Mode (Progress Islands) & 100% Offline Live Recitation (Tasmee')
Motivation — First-of-Its-Kind Real Memorization Session
Most Quran apps only support passive audio playback or manual tap-to-reveal hiding. Learners — especially children and solo Hifz students — still lack an interactive, offline memorization session that genuinely mirrors sitting with a teacher (Mu'allim):
0.75×slow-mo word review) before advancing.This contribution adds these capabilities while keeping Normal Mode reading 100% unchanged and uncluttered.
Privacy & Data Guarantees (100% On-Device, Child-Safe)
Because this feature listens directly to reciters — including children and families — privacy is e 8000 nforced at the architecture level:
SharedPreferenceson the device — zero telemetry or analytics.SHA256SUMS.Open, Free & Publicly Accessible Quran ASR Models (
yousifgamalo/quran-asr-onnx)All speech models powering this PR were trained, audited, quantized, and published openly and for free on Hugging Face by the author:
quran.json(all 6,236 verses,0 <unk>tokens), vocabularies,mel_basis_80x257.bin,streaming_config.json,SHA256SUMS, canonical teacher stop files (husary_muallim_full.json&minshawi_teacher_full.json), and full PyTorch / NVIDIA NeMo.nemocheckpoints (/nemo).Training Corpus & Dual-Decoder Curation
<blk>).97,646train +2,136validation), filtered from121,652blended recordings:yousifgamalo/mp3quran(232 reciter configurations).yousifgamalo/quran-cleaned-nonprofessional-recordings(411 splits) — ensuring strong accuracy on children, beginners, and everyday voices, not only studio Qaris.quran.jsonRasm boundary checks (0 <unk>tokens across all 6,236 verses).Published Validation Benchmarks (2,136 Curated Clips)
Version 1 — Offline Batch Scoring Model (
fastconformer_quran_int8.onnx, 125.2 MB):mp3quran)Version 2 — Strictly-Causal Stateful Streaming Model (
streaming/fastconformer_quran_streaming_int8.onnx, 125.4 MB — 0 ms future lookahead, 32.6× real-time on CPU at 560 ms chunks):[70, 13][70, 13][70, 13][70, 6][70, 6][70, 1][70, 0]What's Included
Guided Listen & Repeat Memorization Classroom (All 114 Surahs / 6,236 Ayat)
fastconformer_quran_streaming_int8.onnx) + full-turn two-tier grading (fastconformer_quran_int8.onnx) distinguishing Rasm/Makharij, missing words, and Tashkeel errors, with a220 msspeaker-drain guard to prevent echo bleed.0.75×slow-mo word replay.70% / 80% / 90%), per-Ayah repeat (1×–10×), per-Surah repeat (1×–10×), and Auto-Next.Dedicated Full Kids Mode (
KidsModeActivity) with Interactive Progress IslandsNormal Mode Live Recitation (Tasmee') & In-Place Word Masking
﴿١﴾medallions across 5 reveal modes (Word by Word, Single Word, Word Window, Full Ayah, Single Word Tajweed).Screenshots
Verification & Testing
KidsClassroomTest,TajweedLipSyncAndStreamingAsrTest, andTasmeeMonotonicMatcherTest(covering two-tier grading, streaming mel/Welford extraction, mistake-tail slicing, 30-Juz journey planner, rewards/badges persistence,KidsModeActivityreturn navigation, and monotonic Tasmee' decoding).SM-F966B) and Android 36 emulator.Maintainer Notes
quran/quran_android:mainwith upstreamproductFlavors(com.quran.labs.androidquran),signingConfigs, andpages/madanipreserved.ayahinfo_*.zip, sample Tajweed pages,word_alignment.db) to on-demand downloads per maintainer preference.