Effacer les filtres
Effacer les filtres

Error using audioDatastore/read (line 25) Range requested is greater than the total number of samples in the file. TotalSamples is 0.

1 vue (au cours des 30 derniers jours)
When Im trying to classify gender of child, I extracted MFCC and f0 and trained the classifier with these features, but MY PROBLEM is when I want to use this trained model for test data sets its showing this error
Range requested is greater than the total number of samples in the file. TotalSamples is 0."
line 25: [audioIn,dsInfo] = read(adsTest);
Please help me out I was stucked here from few days.
  5 commentaires
jibrahim
jibrahim le 18 Août 2021
Let me clarify what I mean by using audioread:
Call audioread with the file name: audioread('myfile.wav'). Do not pass the datastore to audioread. I suspect something is wrong with one of your files.
Kodali Radha
Kodali Radha le 18 Août 2021
there are 700 recordings and cant identify which .wav file is in tesrdatastore. But the thing is, all audiofiles are clearly audible when listened thorugh PC,
i found a solution for this as, since there are too many internal folder and in few folders testdata samples go to 0 may in this case Im getting error. So I removed internal folder and and madr a single folder. then it worked accurately.
thank you ibrahim for your response

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Signal Processing Toolbox 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