We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 43efc74 + c397069 commit b9341d0Copy full SHA for b9341d0
tests/test_data/speech/nearhou.wav
-1.26 MB
tests/test_data/speech/sleep.wav
tests/test_feature_extraction.py
@@ -14,10 +14,11 @@ def test_get_features():
14
"""
15
Test get_features function
16
17
- test_root = str(Path(__file__).parent)
18
- data_dir = os.path.join(test_root, "test_data")
+ test_root = str(Path(__file__).parent.parent)
+ data_dir = os.path.join(test_root, "data_samples/testing")
19
features = get_features(data_dir, ["gfcc", "mfcc"])
20
assert "speech" in features
21
+ assert "music" in features
22
assert len([i for i in features["speech"].keys() if "sleep.wav" in i]) > 0
23
key = list(features["speech"].keys())[0]
24
assert "features" in features["speech"][key]
0 commit comments