An AI system that identifies the reciter, surah, and ayah from any Quran recitation clip in about 20 seconds. Recognizes 50 reciters (99% validation accuracy) and matches against all 6,236 ayahs. Available as a Telegram bot and a web demo.
Rattel ("رتّل") is "Shazam for the Quran." Send it a short clip of any Quran recitation — audio or video — and within about 20 seconds it tells you who is reciting, which surah, and the exact ayah number, along with the verse text.
Two Things at Once:
Rattel is the first system to combine reciter identification and ayah localization in a single step. It supports 50 reciters — including young Haramain imams you won't find in any other app.
Reciter Identification (50 reciters):
- A 240-dimension voice embedding is extracted with an ECAPA-TDNN model (SpeechBrain, pre-trained on VoxCeleb)
- A small custom MLP classifier, trained on 3,659 clips across 50 reciters, makes the call
- Final validation accuracy: 99.1% — and the trained model is only about 245 KB
Ayah and Surah Identification:
- Transcribe-then-match, instead of direct audio matching
- OpenAI Whisper Large v3 (via the Hugging Face Inference API) transcribes the Arabic at roughly 10% WER
- The text is normalized — diacritics stripped, hamzas and letters unified
- Fuzzy matching with rapidfuzz against all 6,236 ayahs finds the best partial match
Privacy:
- No audio is ever stored — every clip is deleted right after analysis
- Bot logs are disabled; only Telegram's own default metadata applies
Availability and Cost:
Available as a Telegram bot (@rattelappbot) and a web demo, running at near-zero monthly cost — about 99% accuracy on test data and 85–90% in real-world use.
رتّل هو «شزام للقرآن الكريم». أرسل مقطعاً قصيراً لأي تلاوة — صوت أو فيديو — وخلال نحو 20 ثانية يخبرك بمن يقرأ، وأي سورة، ورقم الآية بدقة، مع نص الآية.
أمران في آنٍ واحد:
رتّل أول نظام يجمع بين تمييز القارئ وتحديد الآية في خطوة واحدة. يدعم 50 قارئاً — منهم أئمة الحرمين الشباب الذين لا تجدهم في أي تطبيق آخر.
تمييز القارئ (50 قارئاً):
- تُستخرج بصمة صوتية من 240 بُعداً باستخدام نموذج ECAPA-TDNN من مكتبة SpeechBrain المدرَّب مسبقاً على VoxCeleb
- يتولى التصنيف نموذج MLP صغير دُرِّب خصيصاً على 3,659 مقطعاً عبر 50 قارئاً
- دقة التحقق النهائية: 99.1٪ — وحجم النموذج المدرَّب نحو 245 كيلوبايت فقط
تحديد الآية والسورة:
- منهج «النص ثم المطابقة» بدلاً من المطابقة الصوتية المباشرة
- يحوّل نموذج OpenAI Whisper Large v3 (عبر واجهة Hugging Face) الصوت إلى نص عربي بنسبة خطأ نحو 10٪
- يُطبَّع النص — إزالة التشكيل وتوحيد الهمزات والحروف
- مطابقة ضبابية بمكتبة rapidfuzz مع جميع آيات القرآن الـ6236 لإيجاد أفضل تطابق
الخصوصية:
- لا يُخزَّن أي ملف صوتي — يُحذف كل مقطع فور تحليله
- سجلّات البوت مغلقة؛ ولا تنطبق إلا البيانات الوصفية الافتراضية لتيليجرام
التوفّر والتكلفة:
متاح كبوت تيليجرام (@rattelappbot) وعرض ويب، ويعمل بتكلفة شهرية شبه معدومة — دقة نحو 99٪ على بيانات الاختبار و85–90٪ في الاستخدام الواقعي.
Technologies Used
Scan to try it
Interested in this project? Want source code, deployment, or collaboration? Reach out.