def test_mfcc_return_all(): mfcc = MFCC(window_type=window_type) P, X, F, B = mfcc.compute(s, return_fft=True, return_fft_mag=True, return_logfb=True)
def test_mfcc_from_logfb(): mfcc = MFCC(window_type=window_type) P = mfcc.compute(s) mfcc_1 = MFCC(window_type=window_type, output_step='logfb') mfcc_2 = MFCC(window_type=window_type, input_step='logfb') B = mfcc_1.compute(s) P2 = mfcc_2.compute(B) assert_allclose(P, P2, rtol=1e-5)
def test_mfcc_from_fft_mag(): mfcc = MFCC(window_type=window_type) P = mfcc.compute(s) mfcc_1 = MFCC(window_type=window_type, output_step='fft_mag') mfcc_2 = MFCC(window_type=window_type, input_step='fft_mag') F = mfcc_1.compute(s) P2 = mfcc_2.compute(F) assert_allclose(P, P2, rtol=1e-5)
def test_mfcc_linear(): mfcc = MFCC(window_type=window_type, fb_type='linear') P = mfcc.compute(s)
def test_mfcc_etsi(): mfcc = MFCC(window_type=window_type, fb_type='mel_etsi') P = mfcc.compute(s)
def test_mfcc(): mfcc = MFCC(window_type=window_type) P = mfcc.compute(s)