Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add m4a to special cases for num samples determination #1124

Merged
merged 2 commits into from
Aug 23, 2023

Conversation

pzelasko
Copy link
Collaborator

Apparently m4a has a similar structure to mp3, and torchaudio.info (including experimental backend="ffmpeg") returns a corrupted number of samples (but torchaudio.load works fine). We have to iterate the full file to determine the duration instead.

@pzelasko pzelasko merged commit d82c280 into master Aug 23, 2023
8 checks passed
@pzelasko pzelasko deleted the feature/fix-support-m4a branch August 23, 2023 15:51
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.

None yet

1 participant