How to resolve the error "Expected audioIn to be a column vector."

조회 수: 2 (최근 30일)
Mohammed Faridul Haque Siddiqui
Mohammed Faridul Haque Siddiqui 2018년 10월 26일
답변: Pablo Torres 2019년 11월 27일
Hi,
I am using the "Speech Command Recognition Using Deep Learning " to detect words from my own database. The length of each clip in my database is 4 seconds. I am using the default parameters for creating histograms only changing the segmentDuration to the duration in my clips. What wrong I might be doing here?
segmentDuration = 3;
frameDuration = 0.025;
hopDuration = 0.010;
numBands = 40;
The problem is whenever I am trying to run the code, its throwing an error
"Computing speech spectrograms...
Error using auditorySpectrogram
Expected audioIn to be a column vector.
Error in auditorySpectrogram>validateRequiredInputs (line 196)
validateattributes(x,{'single','double'},...
Error in auditorySpectrogram (line 66)
validateRequiredInputs(x,fs)
Error in speechSpectrograms (line 24)
spec = auditorySpectrogram(x,fs, ...
Error in Speech (line 30)
XTrain = speechSpectrograms(adsTrain,segmentDuration,frameDuration,hopDuration,numBands);"
What could be the possible reason and a solution for this. Thannks

답변 (2개)

Walter Roberson
Walter Roberson 2018년 10월 26일
You might be passing in stereo sound instead of mono.
  댓글 수: 17
Walter Roberson
Walter Roberson 2019년 3월 2일
How do you resolve the errors? Can you tell me where wrong is? Thank

댓글을 달려면 로그인하십시오.


Pablo Torres
Pablo Torres 2019년 11월 27일
Audio must be in mono, you can use Audacity for that purpose.

카테고리

Help CenterFile Exchange에서 Dataset Management and Labeling에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by