bastibe / python-soundfile

SoundFile is an audio library based on libsndfile, CFFI, and NumPy
BSD 3-Clause "New" or "Revised" License
697 stars 107 forks source link

RuntimeError: Error opening 'goo_py.aiff': System error #306

Open ChernorJ opened 3 years ago

ChernorJ commented 3 years ago

import soundfile as sf import matplotlib.pyplot as plt import numpy as np

data, samplerate = sf.read('goo_py.aiff') plt.plot(data) plt.show() print(samplerate) print(len(data)*1/samplerate)

ChernorJ commented 3 years ago

I am having the problem with: raise RuntimeError(prefix + _ffi.string(err_str).decode('utf-8', 'replace'))

bastibe commented 3 years ago

System error is libsndfile's way of saying that the file could not be found.

Most likely you are in the wrong directory, or the file name is incorrect.