Skip to content

AISHELL3: add a loader for AISHELL-3 - #23

Merged
SanderGi merged 8 commits into
KoelLabs:mainfrom
RaunakGengiti2725:aishell3-loader
Nov 20, 2026
Merged

SanderGi merged 8 commits into
KoelLabs:mainfrom
RaunakGengiti2725:aishell3-loader

Conversation

@RaunakGengiti2725

Copy link
Copy Markdown
Contributor

PR Description

Summary

  • Adds a loader for AISHELL-3, read Mandarin from 218 speakers, about 85 hours.
  • People wrote the pinyin and tones by listening. The loader makes IPA from the pinyin with a table, aishell3_pinyin_ipa.json, so the labels are phonemic.
  • Uses the archive's own train and test splits, plus test_new_speakers with the 44 unseen speakers. Tones are off by default, and tones="letters" adds them.
  • Tested on every item with the real audio. 1,756 utterances, 2%, are skipped and counted, almost all for erhua. Notes are in docs/datasets/AISHELL3.md.

Worth a look

  • The scorer drops every tone letter, so FER cannot see tones.
  • A few table choices are mine to defend or change, mainly r as ɹ and the neutral tone.
  • The license sources disagree. OpenSLR says Apache 2.0, and one catalog says CC BY-NC-ND 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 8 commits November 11, 2026 05:56
AISHELL-3 adds 218 Mandarin speakers for issue KoelLabs#18. Its labels are
pinyin written by annotators, so the loader turns them into IPA with a
fixed, sourced table in aishell3_pinyin_ipa.json. It offers the
archive's train and test folders, a test_new_speakers split with only
speakers who never appear in train, and optional Chao tone letters.

Erhua syllables and a few nonstandard ones skip the utterance and are
counted. Each WAV is checked by its data chunk, since most files in the
archive have a wrong RIFF size field.
The notes answer the questions on human and machine labels, the
annotators and cleaning. People wrote the pinyin by listening, and the
IPA comes from a fixed table, so it is phonemic. They give the counts,
the splits, the WAV quirks, what evaluation drops, and the license
conflict that needs a decision before any release.
The old steps stripped one top folder from the archive, which was never
checked. The new steps unpack in place and say to move the files up if
tar made a folder. The header also says only what the paper says, that
people wrote the pinyin by listening. No code changes.
The neutral tone now takes its pitch from the last full tone, 2 after
tone 1, 3 after tone 2, 4 after tone 3 and 1 after tone 4, as the cited
source gives. Only tones="letters" changes. The speaker info gains the
ISO code and Glottocode, a missing WAV names its path, a name twice in
content.txt fails, and chunks after the WAV data are allowed.
The notes now give the neutral tone rule and its source, flag r and
iong for a check, and correct the count of test lines shared with
train to 11,066.
The table now lists the LibreTexts page behind the neutral tone rule,
and says why lo is skipped. The final o of the table is uo, which holds
only after b, p, m and f. Dates are in Pacific time. Labels do not
change.
The notes now cite LibreTexts, give the reason lo is skipped, and use
Pacific time, as the table does.

@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 23:53
@SanderGi
SanderGi merged commit dd00171 into KoelLabs:main Nov 20, 2026
2 of 3 checks passed

This branch had an error being deployed

1 failed deployment
security — d1409f53 Deployed Nov 20, 2026 by SanderGi via gitleaks #389
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