From 5414926a27d5b26be937785164f8fb766e607c00 Mon Sep 17 00:00:00 2001 From: Harry Moreno Date: Mon, 21 May 2018 10:57:46 -0400 Subject: [PATCH] Add mfcc test --- test/test_sigproc.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/test_sigproc.py b/test/test_sigproc.py index e08a346..f22b33d 100644 --- a/test/test_sigproc.py +++ b/test/test_sigproc.py @@ -2,6 +2,8 @@ import unittest import numpy as np import time +import scipy.io.wavfile as wav +from python_speech_features import mfcc class test_case(unittest.TestCase): @@ -29,3 +31,8 @@ def test_rolling(self): [6, 7, 8, 9]] ) y = np.testing.assert_array_equal(y, y_expected) + + def test_mfcc(self): + (rate, sig) = wav.read("../english.wav") + mfcc_feat = mfcc(sig, rate) + self.assertIsNotNone(mfcc_feat)