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

1 次查看(过去 30 天)
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 个评论
jibrahim
jibrahim 2021-8-18
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 2021-8-18
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

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Signal Processing Toolbox 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by