Effacer les filtres
Effacer les filtres

Problem in Child Gender Classification using Speech

1 vue (au cours des 30 derniers jours)
Kodali Radha
Kodali Radha le 15 Août 2021
Commenté : Kodali Radha le 15 Août 2021
Dear all, pls help me out, I'm coding Gender Classification from children speech.
When I extracted MFCC features I have got that in 3D, MFCC=5023x14x2
and pitch=5023x2. Now I want to concatenate both pitch and MFCC for labeling but I'm getting an error here as "dimension of array is not consistent".
So I thought of using this
melC_1=melC(:,1:14); %% Changed dimension of MFCC from 3D to 2D = 5023 x 14
f0_1=f0(:,1); %% Pitch is 5023 x 1
feat = [melC1, f0_1]; %% Concatenated
My actual problem: Am I correct in reducing the dimension like shown above? Because I'm getting very much less accuracy when I use the above concatenation.

Réponse acceptée

Image Analyst
Image Analyst le 15 Août 2021
What does
size(melC_1)
size(f0_1)
show? Don't use a semicolon so that the results will show up in the command window. Evidently the sizes are not what you thought.
If you went from 3-D to 2-D you might need to use squeeze():
melC_1 = squeeze(melC(:, 1 : 14)); %% Changed dimension of MFCC from 3D to 2D = 5023 x 14
f0_1 = f0(:, 1); %% Pitch is 5023 x 1
feat = [melC1, f0_1]; %% Concatenated
  1 commentaire
Kodali Radha
Kodali Radha le 15 Août 2021
Thank you for the immediate response, it worked.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Matrix Indexing dans Help Center et File Exchange

Produits


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by