Open ChernorJ opened 3 years ago
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.
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)