0

流体合成器版本:2.3.1 pyfluidsynt:1.3.0 scipy:1.4.1

audio_data = pm.fluidsynth()
m = np.max(np.abs(audio_data))
sigf32 = (audio_data/m).astype(np.float32)
wavfile.write("out.mp3", 44100, sigf32)

我试图从漂亮的 midi 创建的 midi 数据中输出 mp3。
它在本地成功,但 Heroku 给了我这个错误。

$ heroku run bash
$ python
>>> import fluidsynth
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/app/.heroku/python/lib/python3.6/site-packages/fluidsynth.py", line 42, in <module>
    raise ImportError("Couldn't find the FluidSynth library.")
ImportError: Couldn't find the FluidSynth library.

因此,我启动了 heroku bash 并尝试在 python 中导入流体合成。并得到这个错误。

4

0 回答 0