Repository navigation
ArabicSpeechCorpus: add a loader for the Arabic Speech Corpus - #22
Merged
SanderGi merged 3 commits intoNov 20, 2026
Merged
Conversation
Halabi's corpus has phone boundaries for 1,913 utterances of Modern Standard Arabic, so it can serve both training and a leaderboard (issue KoelLabs#18). The loader reads the zip as it is, as TIMIT.py does, and uses the corpus's own train and test folders. The IPA comes from the phones tier of each TextGrid. A small table maps Halabi's symbols to IPA and names a source for each one. An utterance with a phone that has no IPA, such as dist, is skipped and counted, and the original labels are kept in raw_label. Timestamps come from the same tier. The audio goes through soundfile, since these WAVs keep their samples at byte 1024, and audio_bytes_to_array expects them at byte 44.
Alex asked for notes on how each dataset was labelled. These say how the phones were made, by rules, HTK alignment and a partial human check, who checked them, what the symbols mean, what the loader cleans, what evaluation drops, and where the license sources disagree.
SanderGi
marked this pull request as ready for review
November 20, 2026 04:43
This branch had an error being deployed
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.
PR Description
Summary
TIMIT.py.docs/datasets/ArabicSpeechCorpus.md.Worth a look
arabic_speech_corpus_phones.json, with a source for each symbol. It matches the thesis table on pages 46 and 47, exceptu0, which the thesis prints as æ next to a damma, so I used u.dist, and are skipped and counted.Q/A checklist
pip freeze > requirements.txtgitleaks detect && zizmor . && black .Legal Boilerplate
Look, I get it. The entity doing business as "Koel Labs" needs some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Koel Labs can use, modify, copy, and redistribute my contributions, under its choice of terms.