Dataset Viewer

The dataset viewer is not available because its heuristics could not detect any supported data files. You can try uploading some data files, or configuring the data files location manually.

Quranic Recitation Dataset Banner

Opus Format Total Reciters Formats License


🌟 Overview

Quranic Recitation Dataset (Word-by-Word Sync) is a highly optimized, production-ready dataset containing high-quality audio recitations of the Holy Quran synchronized perfectly at the word-by-word level.

This dataset features 34 world-renowned reciters, with every single Surah (114 chapters) mapped precisely to millisecond-accurate word timestamps. It is designed to empower developers and researchers building modern Islamic mobile and web applications, offering exceptional performance, tiny file footprints, and beautiful visual alignment possibilities.


πŸš€ Key Features

  • Massive Scope: Includes 34 distinct reciters covering all 114 Surahs each, totaling 3,876 unique audio files and timing map pairs.
  • Highly Optimized Audio: All audio is converted to mono-channel, 16000Hz, 32kbps .opus format. This ensures exceptional vocal clarity while remaining ultra-lightweight for low-bandwidth mobile and web streaming.
  • Dual-Format Timestamps:
    • .json: Standard, easy-to-parse nested JSON timing data.
    • .pb (Protocol Buffers): A 33% smaller, binary-encoded format ideal for high-performance applications with strict memory and bandwidth constraints.
  • Word-Level Accuracy: Timestamps map directly to standard Uthmani script word indices (both 0-based and 1-based arrays), allowing for beautiful karaoke-style highlighting in apps.

πŸ“‘ CDN Implementation (Cloudflare)

This dataset is designed for instant, scalable fetching over a globally distributed CDN without needing to download the entire 17GB repository locally.

You can use Hugging Face's Cloudflare CDN to fetch .opus audio and .pb / .json timing data directly into your frontend or mobile app.

Fetching a File via CDN URL

Format your endpoint URL as follows:

https://huggingface.co/datasets/zaibihassan/Quranic-Recitation-Data/resolve/main/{Reciter Name}/{Surah Number}/{File}

Ensure folder names and reciter names are URL-encoded in your request (e.g. spaces replaced with %20).

πŸ’» Code Examples

1. Loading Protobuf Timings in JavaScript
// Example: Fetching Alijon Qari's Surah Al-Fatihah timings
const cdnUrl = "https://huggingface.co/datasets/zaibihassan/Quranic-Recitation-Data/resolve/main/Alijon%20Qari/001/001.pb";

async function loadRecitationTimings() {
    const response = await fetch(cdnUrl);
    const arrayBuffer = await response.arrayBuffer();
    const uint8Array = new Uint8Array(arrayBuffer);
    
    // Decode the binary payload using protobuf.js
    const message = SurahTimestamps.decode(uint8Array);
    const timingData = SurahTimestamps.toObject(message);
    
    console.log("Loaded High-Performance Timings:", timingData);
}
2. Streaming Audio Natively in HTML
<!-- Example: Streaming highly optimized Opus audio -->
<audio controls>
  <source src="https://huggingface.co/datasets/zaibihassan/Quranic-Recitation-Data/resolve/main/Alijon%20Qari/001/001.opus" type="audio/ogg; codecs=opus">
</audio>

πŸ“‚ Dataset Structure

The dataset is organized hierarchically by Reciter Name $\rightarrow$ Surah Number (001-114).

Inside each Surah folder, you will find three standard files:

  1. [SurahNumber].opus - The highly compressed audio file.
  2. [SurahNumber].json - The human-readable timestamp mappings.
  3. [SurahNumber].pb - The binary Protocol Buffer timestamp mappings.
Quranic-Recitation-Data/
β”œβ”€β”€ Abdul Basit Abdul Samad (Mujawwad – Hafs)/
β”‚   β”œβ”€β”€ 001/
β”‚   β”‚   β”œβ”€β”€ 001.opus
β”‚   β”‚   β”œβ”€β”€ 001.json
β”‚   β”‚   └── 001.pb
β”‚   β”œβ”€β”€ 002/
β”‚   ...
β”œβ”€β”€ Alijon Qari/
β”œβ”€β”€ Mishari Rashid Al Afasy (Murattal – Hafs)/
...

⏱️ Timing Data Schema

The timing data maps a specific Verse (Ayah) ID to an array of word segments. Each segment contains 4 values:

  1. word_index_0_based: The word index starting from 0.
  2. word_index_1_based: The word index starting from 1.
  3. timestamp_from: The start time of the word in milliseconds.
  4. timestamp_to: The end time of the word in milliseconds.

JSON Example (001.json):

{
  "1:1": {
    "segments": [
      [0, 1, 9410, 10050],
      [1, 2, 10130, 11030],
      [2, 3, 11070, 12580],
      [3, 4, 12660, 15360]
    ]
  }
}

Protocol Buffer Schema (recitation.proto):

For strict typing and parsing of the .pb files natively inside your application, compile or load the following schema:

syntax = "proto3";
package recitation;

message WordSegment {
  int32 word_index_0_based = 1;
  int32 word_index_1_based = 2;
  int32 timestamp_from = 3;
  int32 timestamp_to = 4;
}

message VerseSegments {
  repeated WordSegment segments = 1;
}

message SurahTimestamps {
  map<string, VerseSegments> verses = 1;
}

πŸŽ™οΈ Included Reciters

This dataset encompasses a diverse range of recitation styles (Murattal, Mujawwad) from 34 prominent reciters:

# Reciter Name & Style # Reciter Name & Style
1 Abdul Basit Abdul Samad (Mujawwad – Hafs) 18 Maher Al Muaiqly (Murattal – Hafs)
2 Abdul Basit Abdul Samad (Murattal – Hafs) 19 Mahmoud Khalil Al Husary (Mujawwad – Hafs)
3 Abdul Rahman Al Sudais (Murattal – Hafs) 20 Mahmoud Khalil Al Husary (Murattal – Hafs)
4 Abdullah Hamad Abu Sharida 21 Mahmoud Khalil Al Husary (Murattal – Hafs – V2)
5 Abu Bakr Al Shatri (Murattal – Hafs) 22 Mishari Rashid Al Afasy (Murattal – Hafs)
6 Ahmed ibn Ali Al Ajmy 23 Mohamed Al Tablawi (Murattal – Hafs)
7 Alijon Qari 24 Muhammad Al Luhaidan
8 Alnufais 25 Muhammad Siddiq Al Minshawi (Kids)
9 Alzain Mohammad Ahmad 26 Muhammad Siddiq Al Minshawi (Murattal – Hafs)
10 Ayman Suwaid (Muallim) 27 Nabil Ar Rifai
11 Badr Al Turki 28 Noreen Siddiq (Duri β€˜an Abu Amr)
12 Bandar Baleela 29 Raad Mohammad Al Kurdi
13 Fatih Seferagic 30 Saad Al Ghamdi (Murattal – Hafs)
14 Hani Ar Rifai (Murattal – Hafs) 31 Saud Al Shuraim (Murattal – Hafs)
15 Idris Abkar 32 Surah Recitation – Hady Toure
16 Khalid Al Jalil (Murattal – Hafs) 33 Tawfeeq bin Saeed As Sawaaigh
17 Khalifa Al Tunaiji (Murattal – Hafs) 34 Yasser Al Dosari (Murattal – Hafs)

πŸ“œ Data License & Usage

License: Apache-2.0

This dataset is completely free and open-source for personal, educational, and commercial projects under the Apache License 2.0. You are highly encouraged to integrate this directly into mobile apps (Flutter, React Native, iOS, Android) and web platforms without any restrictive encumbrances.

Attribution: While not strictly required by the license, we appreciate attribution linking back to this dataset to support the ongoing development of open-source Islamic infrastructure.

Downloads last month
63