Azzera filtri
Azzera filtri

MFCC into feature vector

22 visualizzazioni (ultimi 30 giorni)
Ricky Wijaya
Ricky Wijaya il 7 Giu 2020
Risposto: Brian Hemmat il 22 Giu 2020
Hello, right now im working on baby cry meaning using MFCC for feature extraction
this is my code for mfcc
[audioIn, fs] = audioread('Lelah2.wav');
coeffs = mfcc(audioIn, fs);
so the result is a matrix, not a feature vector
any suggestion to change the matrix into a feature vector ?

Risposta accettata

Brian Hemmat
Brian Hemmat il 22 Giu 2020
The mfcc function returns mel frequnecy cepstral coefficients (MFCC) over time. That is, it separates the audio into short windows and calculates the MFCC (aka feature vectors) for each window.
For example, in this scenario:
coeffs = mfcc(audioIn,fs);
[L,M,N] = size(coeffs);
  • L - Number of windows the function analyzed (aka number of feature vectors)
  • M - Number of coefficients (aka number of features in each feature vector)
  • N - Number of channels
Depending on your application, you may want to combine the feature vectors into a single statistical summation by averaging the coffecients, or you may want to feed each feature vector into your system separately.
For example, the following code gives the mean of the coefficients.
coeffs = mean(coeffs,1);
For more information, consult the documentation:

Più risposte (0)

Prodotti


Release

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by