Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
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 Kommentare
jibrahim
jibrahim am 18 Aug. 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 am 18 Aug. 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

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Signal Processing Toolbox finden Sie in Help Center und File Exchange

Produkte


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by