python-soundfile icon indicating copy to clipboard operation
python-soundfile copied to clipboard

soundfile.LibsndfileError: Error : unknown error in flac decoder.

Open a897456 opened this issue 1 year ago • 2 comments
trafficstars

Epoch:1 Steps : 0, Gen Loss Total : 29.366, Dis Loss Total : 3.910, s/b : 1.833 ...... Steps : 1390, Gen Loss Total : 15.950, Dis Loss Total : 2.581, s/b : 0.525 Steps : 1400, Gen Loss Total : 20.574, Dis Loss Total : 2.378, s/b : 0.534 Traceback (most recent call last): File "E:\000\naturalspeech2-pytorch-main\04_soundstream_0407.py", line 166, in main() File "E:\000\naturalspeech2-pytorch-main\04_soundstream_0407.py", line 163, in main train(a) File "E:\000\naturalspeech2-pytorch-main\04_soundstream_0407.py", line 69, in train for i ,batch in enumerate(train_dataloader): File "E:\ProgramData\anaconda3\envs\py38Janp\lib\site-packages\torch\utils\data\dataloader.py", line 630, in next data = self._next_data() File "E:\ProgramData\anaconda3\envs\py38Janp\lib\site-packages\torch\utils\data\dataloader.py", line 674, in _next_data data = self._dataset_fetcher.fetch(index) # may raise StopIteration File "E:\ProgramData\anaconda3\envs\py38Janp\lib\site-packages\torch\utils\data_utils\fetch.py", line 51, in fetch data = [self.dataset[idx] for idx in possibly_batched_index] File "E:\ProgramData\anaconda3\envs\py38Janp\lib\site-packages\torch\utils\data_utils\fetch.py", line 51, in data = [self.dataset[idx] for idx in possibly_batched_index] File "E:\000\naturalspeech2-pytorch-main\dataset.py", line 46, in getitem audio, sampling_rate = soundfile.read(filename) File "E:\ProgramData\anaconda3\envs\py38Janp\lib\site-packages\soundfile.py", line 288, in read data = f.read(frames, dtype, always_2d, fill_value, out) File "E:\ProgramData\anaconda3\envs\py38Janp\lib\site-packages\soundfile.py", line 895, in read frames = self._array_io('read', out, frames) File "E:\ProgramData\anaconda3\envs\py38Janp\lib\site-packages\soundfile.py", line 1344, in _array_io return self._cdata_io(action, cdata, ctype, frames) File "E:\ProgramData\anaconda3\envs\py38Janp\lib\site-packages\soundfile.py", line 1354, in _cdata_io _error_check(self._errorcode) File "E:\ProgramData\anaconda3\envs\py38Janp\lib\site-packages\soundfile.py", line 1407, in _error_check raise LibsndfileError(err, prefix=prefix) soundfile.LibsndfileError: Error : unknown error in flac decoder.

can anyone help me?

a897456 avatar Apr 07 '24 05:04 a897456

https://github.com/bastibe/python-soundfile/issues/388

same problem, but librosa 0.10.1 requires soundfile>=0.12.1, but you have soundfile 0.12.0 which is incompatible.

a897456 avatar Apr 07 '24 05:04 a897456

The update to 0.12.2 has been sitting in my pipeline for a while, but I haven't gotten around to testing it on the three platforms yet.

Ideally, I'd like to have a test suite to run automatically on Windows, Linux, MacOS. If you want to speed up the release process, please help out.

bastibe avatar Apr 08 '24 06:04 bastibe