def invert_spectrogram(spectrogram): ''' spectrogram: [f, t] ''' return librosa.istft(spectrogram, hp.hop_length, win_length=hp.win_length, window="hann")