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

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

Open ChernorJ opened this issue 4 years ago • 2 comments
trafficstars

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 avatar Jul 14 '21 01:07 ChernorJ

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

ChernorJ avatar Jul 14 '21 01:07 ChernorJ

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.

bastibe avatar Jul 14 '21 09:07 bastibe