Spaces:
Runtime error
Runtime error
IvanLayer7
commited on
Commit
•
055425e
1
Parent(s):
2de8fd8
Update app.py
Browse files
app.py
CHANGED
@@ -16,8 +16,9 @@ def transform_data(audio):
|
|
16 |
,sr=44100
|
17 |
,offset=0.5
|
18 |
)
|
|
|
19 |
sample_rate = np.array(sample_rate)
|
20 |
-
mfccs =
|
21 |
mfccs = np.expand_dims(mfccs, axis=-1)
|
22 |
return mfccs
|
23 |
|
|
|
16 |
,sr=44100
|
17 |
,offset=0.5
|
18 |
)
|
19 |
+
|
20 |
sample_rate = np.array(sample_rate)
|
21 |
+
mfccs = librosa.feature.mfcc(y=X, sr=sample_rate, n_mfcc=30)
|
22 |
mfccs = np.expand_dims(mfccs, axis=-1)
|
23 |
return mfccs
|
24 |
|