def stftfreq(wsize, sfreq=None):
 n_freq = ((wsize // 2) + 1)
 freqs = fftfreq(wsize)
 freqs = np.abs(freqs[:n_freq])
 if (sfreq is not None):
  freqs *= float(sfreq)
 return freqs

def stftfreq ( wsize , sfreq = None ) : n_freq = ( ( wsize // 2 ) + 1 ) freqs = fftfreq ( wsize ) freqs = np . abs ( freqs [ : n_freq ] ) if ( sfreq is not None ) : freqs *= float ( sfreq ) return freqs
frequencies of stft transformation .