python-soundfile
python-soundfile copied to clipboard
RuntimeError: Error opening 'goo_py.aiff': System error
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)
I am having the problem with: raise RuntimeError(prefix + _ffi.string(err_str).decode('utf-8', 'replace'))
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.