【发布时间】:2021-01-07 21:14:10
【问题描述】:
我在 anaconda 中使用 librosa 0.6,我还安装了 ffmpeg,但我仍然收到此错误
代码是
a = np.exp(spectrum) - 1
p = 2 * np.pi * np.random.random_sample(spectrum.shape) - np.pi
for i in range(50):
S = a * np.exp(1j * p)
x = librosa.istft(S)
p = np.angle(librosa.stft(x, N_FFT))
librosa.output.write_wav(outfile, x, sr)
【问题讨论】:
标签: python python-3.x audio ffmpeg librosa