You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In [1]: importsoundfileIn [2]: soundfile.__version__Out[2]: '0.12.1'In [3]: soundfile.__libsndfile_version__Out[3]: '1.2.2'In [4]: sf=soundfile.SoundFile('oggflac.ogg')
---------------------------------------------------------------------------LibsndfileErrorTraceback (mostrecentcalllast)
CellIn[4], line1---->1sf=soundfile.SoundFile('oggflac.ogg')
File/usr/lib/python3.11/site-packages/soundfile.py:658, inSoundFile.__init__(self, file, mode, samplerate, channels, subtype, endian, format, closefd)
655self._mode=mode656self._info=_create_info_struct(file, mode, samplerate, channels,
657format, subtype, endian)
-->658self._file=self._open(file, mode_int, closefd)
659ifset(mode).issuperset('r+') andself.seekable():
660# Move write position to 0 (like in Python file objects)661self.seek(0)
File/usr/lib/python3.11/site-packages/soundfile.py:1216, inSoundFile._open(self, file, mode_int, closefd)
1213iffile_ptr==_ffi.NULL:
1214# get the actual error code1215err=_snd.sf_error(file_ptr)
->1216raiseLibsndfileError(err, prefix="Error opening {0!r}: ".format(self.name))
1217ifmode_int==_snd.SFM_WRITE:
1218# Due to a bug in libsndfile version <= 1.0.25, frames != 01219# when opening a named pipe in SFM_WRITE mode.1220# See http://github.com/erikd/libsndfile/issues/77.1221self._info.frames=0LibsndfileError: Erroropening'oggflac.ogg': Error : unknownerrorinflacdecoder.
In [5]:
This error originates in libsndfile, and will need to be dealt with on their end. It may be a malformed FLAC file (check with a known-good one), or a bug in libflac, as called by libsndfile. It may also have been fixed already, as our libsndfile is outdated by about half a year. Work is ongoing on a new version, hopefully to be released in the next few weeks.
Try to open an Ogg FLAC file with
soundfile
:The text was updated successfully, but these errors were encountered: