フィルターのクリア

Undefined function error in Audio Toolbox and Deeplearning Toolbox

10 ビュー (過去 30 日間)
Yifan Dong
Yifan Dong 2021 年 9 月 22 日
コメント済み: Yifan Dong 2021 年 9 月 23 日
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:
load('commandNet.mat')
[x,fs] = audioread('stop_command.flac');
sound(x,fs)
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?

採用された回答

Brian Hemmat
Brian Hemmat 2021 年 9 月 22 日
Hi Yifan,
To run the example, you'll need to open the example using this command:
openExample('deeplearning_shared/DeepLearningSpeechRecognitionExample')
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.
HTH,
Brian
  1 件のコメント
Yifan Dong
Yifan Dong 2021 年 9 月 23 日
Thank you very much! I can run the exmaple now.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSpeech Recognition についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by