Last active
August 29, 2015 14:12
-
-
Save jfsantos/82de18a9c87b6d3d942a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from gammatone.fftweight import fft_gtgram | |
from scipy.io.matlab import loadmat | |
s = loadmat("test.mat")["s"][:,0] | |
fs = 16000 | |
# gt_py has 260 frames | |
gt_py = fft_gtgram(s, fs, 0.010, 0.0025, 23, 125) | |
# gt_mat has 269 frames | |
gt_mat = loadmat("tempEnv.mat")["tempEnv"] | |
assert gt_py.shape == gt_mat.shape |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment