Skip to content

Commit

Permalink
Improve istft
Browse files Browse the repository at this point in the history
  • Loading branch information
adityac8 committed Jun 16, 2018
1 parent 9a559f0 commit 94f498e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions feature_description.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,7 @@ def istft(features,path,library='readwav'):
if fs != fsx:
raise Exception("Assertion Error. Sampling rate Found {} Expected {}".format(fs,fsx))
stft_matrix = stft(features,path)
t, X = scipy.signal.istft(stft_matrix, fs, window=window_type, nperseg=window_length, noverlap=noverlap, nfft=None, input_onesided=True, boundary=True, time_axis=-1, freq_axis=-2)

t, X = scipy.signal.istft(stft_matrix, fs, window='hann', nperseg=None, noverlap=None, nfft=None, input_onesided=True, boundary=True, time_axis=-1, freq_axis=-2)
if normalize:
X=feature_normalize(X)

Expand Down

0 comments on commit 94f498e

Please sign in to comment.