필터 지우기
필터 지우기

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