Datasets:
pretty_name: OpenBible Swahili
language:
- swa
license: cc-by-sa-4.0
task_categories:
- automatic-speech-recognition
- text-to-speech
Dataset Card for OpenBible Swahili
OpenBible Swahili is a verse-level segmented audio of Swahili: Biblica® Open Kiswahili Contemporary Version (Neno). This dataset/project is inspired by masakhane-io/bibleTTS and coqui-ai/open-bible-scripts, with a twist of applying the more recent Massively Multilingual Speech (MMS) for audio alignment.
Dataset Details
Dataset Description
For a more detailed description, please refer to OpenBible-TTS.
We followed the CTC Forced Alignment API Tutorial graciously provided by PyTorch. We used the Massively Multilingual Speech (MMS) model to align the audio to the text.
Like the challenges explained in the MMS paper, we also faced the same noisy audio alignment issues:
- Chapter introduction narration
- Occasional verse number reading
- Digits/number handling
While masakhane-io/bibleTTS proposes a solution by manually (1) inserting chapter introduction transcript and (2) spells out numbers, we decided to use a mix of MMS' method by (1) inserting *
token for additional speech (e.g. chapter introduction, verse number reading) and (2) converting digits to words using num2words, if available.
The aligned verse text and audio are then segmented into verse-level segments for TTS model training. We recommend reading the MMS paper for better understanding.
- Homepage: https://github.com/bookbot-hive/OpenBible-TTS/
- Repository: https://github.com/bookbot-hive/OpenBible-TTS/
- Point of Contact: Wilson Wongso
Usage
from datasets import load_dataset
# all 66 books
dataset = load_dataset("bookbot/OpenBible_Swahili", trust_remote_code=True)
# only Genesis
dataset = load_dataset("bookbot/OpenBible_Swahili", "GEN", trust_remote_code=True)
Dataset Structure
Data Instances
{
"id": "GEN_001_001",
"verse_id": "GEN 1:1",
"audio": {
"path": "GEN/GEN_001/GEN_001_001.wav",
"array": array([0.0010376, 0.0007019, 0.00015259, ..., 0.00817871, 0.00482178, 0.01132202]),
"sampling_rate": 44100,
},
"verse_text": "Hapo mwanzo Mungu aliumba mbingu na dunia.",
"transcript": "hapo mwanzo mungu aliumba mbingu na dunia",
}
Data Fields
id
: a unique identifier for the verse, formatted asBOOK_CHAPTER_VERSE
.verse_id
: the verse identifier, formatted asBOOK CHAPTER:VERSE
.audio
: a dictionary containing the path to the audio file, the decoded audio array, and the sampling rate.path
: the path to the audio file.array
: the decoded audio array.sampling_rate
: the sampling rate of the audio.
verse_text
: the verse text, with proper capitalization and punctuations.transcript
: the lowercased, punctuation-removed version ofverse_text
, used during forced-alignment.
Data Splits
USX Code | Book Name | #verses |
---|---|---|
GEN | Genesis | 1533 |
EXO | Exodus | 1213 |
LEV | Leviticus | 859 |
NUM | Numbers | 1288 |
DEU | Deuteronomy | 959 |
JOS | Joshua | 658 |
JDG | Judges | 618 |
RUT | Ruth | 85 |
1SA | 1 Samuel | 810 |
2SA | 2 Samuel | 695 |
1KI | 1 Kings | 816 |
2KI | 2 Kings | 719 |
1CH | 1 Chronicles | 942 |
2CH | 2 Chronicles | 822 |
EZR | Ezra | 280 |
NEH | Nehemiah | 406 |
EST | Esther | 167 |
JOB | Job | 1070 |
PSA | Psalms | 2461 |
PRO | Proverbs | 915 |
ECC | Ecclesiastes | 222 |
SNG | Song of Songs | 117 |
ISA | Isaiah | 1292 |
JER | Jeremiah | 1364 |
LAM | Lamentations | 154 |
EZK | Ezekiel | 1273 |
DAN | Daniel | 357 |
HOS | Hosea | 197 |
JOL | Joel | 73 |
AMO | Amos | 146 |
OBA | Obadiah | 21 |
JON | Jonah | 48 |
MIC | Micah | 105 |
NAM | Nahum | 47 |
HAB | Habakkuk | 56 |
ZEP | Zephaniah | 53 |
HAG | Haggai | 38 |
ZEC | Zechariah | 211 |
MAL | Malachi | 55 |
MAT | Matthew | 1071 |
MRK | Mark | 678 |
LUK | Luke | 1151 |
JHN | John | 879 |
ACT | Acts | 1007 |
ROM | Romans | 433 |
1CO | 1 Corinthians | 437 |
2CO | 2 Corinthians | 257 |
GAL | Galatians | 149 |
EPH | Ephesians | 155 |
PHP | Philippians | 104 |
COL | Colossians | 95 |
1TH | 1 Thessalonians | 89 |
2TH | 2 Thessalonians | 47 |
1TI | 1 Timothy | 113 |
2TI | 2 Timothy | 83 |
TIT | Titus | 46 |
PHM | Philemon | 25 |
HEB | Hebrews | 303 |
JAS | James | 108 |
1PE | 1 Peter | 105 |
2PE | 2 Peter | 61 |
1JN | 1 John | 105 |
2JN | 2 John | 13 |
3JN | 3 John | 15 |
JUD | Jude | 25 |
REV | Revelation | 404 |
Total | 31103 |