Invertible STFT and ISTFT in Python

后端 未结 10 2050
自闭症患者
自闭症患者 2020-12-02 07:57

Is there any general-purpose form of short-time Fourier transform with corresponding inverse transform built into SciPy or NumPy or whatever?

There\'s the pyplot

10条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-02 08:34

    librosa.core.stft and istft look pretty similar to what I was looking for, though they didn't exist at the time:

    librosa.core.stft(y, n_fft=2048, hop_length=None, win_length=None, window=None, center=True, dtype=)

    They don't invert exactly, though; the ends are tapered.

提交回复
热议问题