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.
1 parent eb3e4de commit 55efa4dCopy full SHA for 55efa4d
pyaudioclassification/feat_extract.py
@@ -15,7 +15,7 @@ def extract_feature(file_name):
15
if X.ndim > 1:
16
X = X[:,0]
17
X = X.T
18
-
+ X = np.asfortranarray(X)
19
stft = np.abs(librosa.stft(X))
20
mfccs = np.mean(librosa.feature.mfcc(y=X, sr=sample_rate, n_mfcc=40).T,axis=0)
21
chroma = np.mean(librosa.feature.chroma_stft(S=stft, sr=sample_rate).T,axis=0)
0 commit comments