Effacer les filtres
Effacer les filtres

Undefined function error in Audio Toolbox and Deeplearning Toolbox

7 vues (au cours des 30 derniers jours)
Yifan Dong
Yifan Dong le 22 Sep 2021
Commenté : Yifan Dong le 23 Sep 2021
I am trying to run a pretrained network on speech command recognition demonstrated on this page:
My code is here, it is simply a copy of what the page instructs:
[x,fs] = audioread('stop_command.flac');
auditorySpect = helperExtractAuditoryFeatures(x,fs);
command = classify(trainedNet,auditorySpect)
and I got these warnings and a error:
Warning: Unable to load instances of class weightedClassificationLayer into a heterogeneous array. The definition of
weightedClassificationLayer could be missing or contain an error. Default objects will be substituted.
Warning: While loading an object of class 'SeriesNetwork':
Error using 'predict' in Layer nnet.cnn.layer.MissingLayer. The function threw an error and could not be executed.
Undefined function 'helperExtractAuditoryFeatures' for input arguments of type 'double'.
Error in T2 (line 4)
auditorySpect = helperExtractAuditoryFeatures(x,fs);
Could any one tell why I got this error?

Réponse acceptée

Brian Hemmat
Brian Hemmat le 22 Sep 2021
Hi Yifan,
To run the example, you'll need to open the example using this command:
Alternatively, you can click the button on the top right of the example.
That command will open a copy of the example into a new location that includes all necessary helper files. You can step through the example from there.

Plus de réponses (0)




Community Treasure Hunt

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

Start Hunting!

Translated by