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

Audio dir stats formats - breaks on mp3 #81

Open
turian opened this issue Sep 9, 2021 · 0 comments
Open

Audio dir stats formats - breaks on mp3 #81

turian opened this issue Sep 9, 2021 · 0 comments

Comments

@turian
Copy link
Contributor

turian commented Sep 9, 2021

Python soundfile cannot read mp3s but this is one of the formats that is searched for by audio_dir_stats_wav: https://github.com/neuralaudio/hear-eval-kit/blob/531adcc778582300fcdf7f4a19507cb16b8d31aa/heareval/tasks/util/audio.py#L93

Update the formats that are searched for or use something like audioread in the case of an mp3. Perhaps include the soundfile info function in a try block and load in with audioread and get the stats that way if it fails.

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

No branches or pull requests

1 participant