0
$\begingroup$

I am getting 20-length mfcc of an audio signal. Each element(vector) is of size 5. I am using Librosa.

How to give custom size to the each element of mfcc (say 6)?

$\endgroup$
0
0
$\begingroup$

If you are looking to get more mfcc coefficients for the given signal, you can do that by using librosa.feature.mfcc(y=y, sr=sr, n_mfcc=40), here you will get 40 coefficients for each time component.

$\endgroup$
8
  • $\begingroup$ Actually, i don't have issue with n_mfcc. I am getting a length of 20. But each element in it is a list of 5 elements, I want to increase that length. Not the n_mfcc. $\endgroup$ – hanugm Oct 19 '20 at 10:11
  • $\begingroup$ Are you getting a list of dimension 20 x 5? $\endgroup$ – Aaquila Oct 19 '20 at 10:14
  • $\begingroup$ Yes, exactly, but want 20 X 6 etc., I mean changing the length of elements. $\endgroup$ – hanugm Oct 19 '20 at 10:14
  • $\begingroup$ The output returned is of the dimension (n_mfcc x t). So you will have to change the window length and hop_length to vary the t. $\endgroup$ – Aaquila Oct 19 '20 at 10:17
  • $\begingroup$ Can I change it using the above mentioned mfcc function? I can see the hop_length, but no argument on window_size. $\endgroup$ – hanugm Oct 19 '20 at 10:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.