Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions test/test_sigproc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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)