feat: Add LibriSpeech dataset builder(audio dataset)#63
Open
Anurag9Dhiman wants to merge 1 commit into
Open
Conversation
- Added Arrow-backed BaseDatasetBuilder implementation for LibriSpeech - Supports train-clean-100 and test-clean splits from openslr - Parses both audio (.flac via soundfile) and transcriptions - Added comprehensive unit tests and exposed via timeseries module
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.
What does this PR do?
Fixes # (issue)
This PR adds support for downloading and extracting the LibriSpeech dataset natively into stable-datasets using the optimized BaseDatasetBuilder architecture.
Changes Made:
Added LibriSpeech class in stable_datasets/timeseries/librispeech.py implementing the official base interface.
Audio Decoding: Efficiently parses .flac waveform subsets into float32 arrays using the soundfile library (a lighter, more efficient alternative to full PyTorch audio dependencies).
Transcriptions: Safely handles mapping text transcriptions from internal .trans.txt files inside the multi-directory .tar.gz archive.
Before submitting
Pull Request section?
documentation guidelines
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.