tyiannak / pyAudioAnalysis

Python Audio Analysis Library: Feature Extraction, Classification, Segmentation and Applications
Apache License 2.0
5.83k stars 1.19k forks source link

What is the updated code for audioTrainTest.feature() ? #317

Closed lxrswdd closed 4 years ago

lxrswdd commented 4 years ago

I have been left with some codes regarding the use of pyAudioAnalysis. However, it appears that the pyAudioAnalysis source codes have been updated a lot.

features = aT.feature(["/Users/megumi/workspace/speech/MEC2017/plot/val/1_005_F001_d/angry", "/Users/megumi/workspace/speech/MEC2017/plot/val/1_005_F001_d/anxious", "/Users/megumi/workspace/speech/MEC2017/plot/val/1_005_F001_d/disgust", "/Users/megumi/workspace/speech/MEC2017/plot/val/1_005_F001_d/happy", "/Users/megumi/workspace/speech/MEC2017/plot/val/1_005_F001_d/neutral", "/Users/megumi/workspace/speech/MEC2017/plot/val/1_005_F001_d/sad", "/Users/megumi/workspace/speech/MEC2017/plot/val/1_005_F001_d/surprise", "/Users/megumi/workspace/speech/MEC2017/plot/val/1_005_F001_d/worried"], 1.0, 1.0, aT.shortTermWindow, aT.shortTermStep)

 [x_test, y_test] = aT.listOfFeatures2Matrix(features)

I wish to create this but there isnt a feature() function anymore. What left is either ShortTermFeatures.feature_extraction' or 'extract_features_and_train .

How should i proceed? Thanks!