Skip to content

ArabicSpeechCorpus: add a loader for the Arabic Speech Corpus - #22

Merged
SanderGi merged 3 commits into
KoelLabs:mainfrom
RaunakGengiti2725:arabic-speech-corpus-loader
Nov 20, 2026
Merged

SanderGi merged 3 commits into
KoelLabs:mainfrom
RaunakGengiti2725:arabic-speech-corpus-loader

Conversation

@RaunakGengiti2725

Copy link
Copy Markdown
Contributor

PR Description

Summary

  • Adds a loader for the Arabic Speech Corpus, Modern Standard Arabic from one male speaker. It has 1,792 train and 100 test items, about 4 hours, with phone timestamps.
  • Uses the corpus's own train and test folders, and reads the zip as it is, like TIMIT.py.
  • The phones were made by rules from the text, aligned with HTK and partly checked by people, so they are not a free transcription.
  • Tested on every item with the real audio. Notes are in docs/datasets/ArabicSpeechCorpus.md.

Worth a look

  • The IPA comes from arabic_speech_corpus_phones.json, with a source for each symbol. It matches the thesis table on pages 46 and 47, except u0, which the thesis prints as æ next to a damma, so I used u.
  • 21 train utterances have a phone with no IPA, such as dist, and are skipped and counted.
  • The license sources disagree. The zip's README says commercial use needs an agreement with MicroLinkPC, while the website says CC BY 4.0.

Q/A checklist

  • If you added new dependencies, did you update the requirements.txt file? pip freeze > requirements.txt
  • Run formatting and security checks gitleaks 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.

RaunakGengiti2725 and others added 3 commits November 10, 2026 21:45
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 SanderGi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@SanderGi
SanderGi marked this pull request as ready for review November 20, 2026 04:43
@SanderGi
SanderGi merged commit 3ca662e into KoelLabs:main Nov 20, 2026
2 of 3 checks passed

This branch had an error being deployed

1 failed deployment
security — 57ef6d4e Deployed Nov 20, 2026 by SanderGi via gitleaks #387
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants