When trying to open a .wav or .mp3 file. i got the error:
raise LibsndfileError(err, prefix="Error opening {0!r}: ".format(self.name))
soundfile.LibsndfileError: Error opening <_io.BytesIO object at 0x0000022B81C21850>: Format not recognised.
I am using
soundfile.version
'0.12.1'
soundfile.__libsndfile_version__
'1.2.0'
on Windows 10 platform, audio file are playable
A BytesIO object does not have a file name, so soundfile can't infer the file's format. Without the file name, you need to specify the format manually.
When trying to open a .wav or .mp3 file. i got the error: raise LibsndfileError(err, prefix="Error opening {0!r}: ".format(self.name)) soundfile.LibsndfileError: Error opening <_io.BytesIO object at 0x0000022B81C21850>: Format not recognised. I am using