Skip to content

Commit c4b2b71

Browse files
author
Harry Moreno
committed
Add mfcc test
1 parent e51df9e commit c4b2b71

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/test_sigproc.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
import unittest
33
import numpy as np
44
import time
5+
import scipy.io.wavfile as wav
6+
from python_speech_features import mfcc
57

68

79
class test_case(unittest.TestCase):
@@ -29,3 +31,7 @@ def test_rolling(self):
2931
[6, 7, 8, 9]]
3032
)
3133
y = np.testing.assert_array_equal(y, y_expected)
34+
35+
def test_mfcc(self):
36+
(rate, sig) = wav.read("../english.wav")
37+
mfcc_feat = mfcc(sig, rate)

0 commit comments

Comments
 (0)