Invertible STFT and ISTFT in Python

后端 未结 10 2053
自闭症患者
自闭症患者 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:26

    I think scipy.signal has what you are looking for. It has reasonable defaults, supports multiple window types, etc...

    http://docs.scipy.org/doc/scipy-0.17.0/reference/generated/scipy.signal.spectrogram.html

    from scipy.signal import spectrogram
    freq, time, Spec = spectrogram(signal)
    

提交回复
热议问题