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

Can't read a FLAC file #450

Open
brucenielson opened this issue Dec 6, 2024 · 2 comments
Open

Can't read a FLAC file #450

brucenielson opened this issue Dec 6, 2024 · 2 comments

Comments

@brucenielson
Copy link

I have a small working flac file. I apparently can't attach it. But it works fine playing it but it is short. 96k.

import soundfile as sf
with open('facebook_mms-tts-eng_test_sentence.flac', 'rb') as f:
data, samplerate = sf.read(f)

I get this error:
ValueError: array is too big; arr.size * arr.dtype.itemsize is larger than the maximum possible size.

@brucenielson
Copy link
Author

facebook_mms-tts-eng_test_sentence.json
Try renaming this file to be a flac file and it should work. I faked it to be a 'json' so that your importer didn't block it.

@bastibe
Copy link
Owner

bastibe commented Dec 11, 2024

IIRC, this is a libsndfile error, where the number of frames is not reported correctly. It will be fixed with the next release once we update libsndfile.

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

2 participants