Undefined function 'mtimes' for input arguments of type 'audiorecorder'.

1 回表示 (過去 30 日間)
Shadi Ayyad
Shadi Ayyad 2015 年 4 月 21 日
コメント済み: Shadi Ayyad 2016 年 3 月 16 日
I have downloaded the speaker recognition system that uses MFCC or WAVELET SUB BAND CODING methods written by "raghu ram". It is a great effort and it was so beneficial to me. I am using the code in a newer MATLAB version (R2014a), so I have replaced functions: wavread, wavplay and wavrecord by audioread, audioplayer and audiorecorder respectively.
Here is my problem: In the sound editor GUI, when I press in the "Record" button for a number of seconds, instantly a "recording finished" message appears in the interface, and an error appears in the command window. This is the error:
Undefined function 'mtimes' for input arguments of type 'audiorecorder'. Error in gui>bt_record_callback (line 115) signal=0.99*data/max(abs(data)); Error in gui_mainfcn (line 95) feval(varagin{:}); Error in gui (line 49) gui_mainfcn(gui_state, varagin{:}); Error while evaluating uicontrol callback
Note that, please, as I have said previously I have replaced wavrecord in line 113 by audiorecorder.
does any one has suggestions as a solution for my problem?
Thanks a lot. Regards. Shadi Ayyad.
  2 件のコメント
Rui
Rui 2016 年 1 月 5 日
Dear Shadi:
I am also working on the speaker reconganization project. Could you please send me the raghu ram codes.
Thanks very much
Rui
Shadi Ayyad
Shadi Ayyad 2016 年 3 月 16 日
Of course Rui. This is the link of the code:
download it there. good luck.

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

採用された回答

David Young
David Young 2015 年 4 月 21 日
Presumably you replaced
data = wavrecord( ... );
by
data = audiorecorder( ... );
(I don't know what arguments were used.) If so, try this instead
audioRec = audiorecorder;
audioRec.recordblocking(5);
data = audioRec.getaudiodata;
That will record for a fixed time of 5 seconds. You probably want to replace the 5 with a variable holding the time to record for. Alternatively, you can record for an indefinite length of time and call the stop method from your GUI to stop recording. See the audiorecorder documentation for details
Note also that you can set all sorts of parameters in the call to audiorecorder - see the documentation.
It's also inefficient to create a new audiorecorder object each time you want to record something - ideally you'd call audiorecorder once only and then hold onto the audiorecorder object.
  2 件のコメント
Shadi Ayyad
Shadi Ayyad 2015 年 4 月 22 日
Thnaks. I will try it.
Shadi Ayyad
Shadi Ayyad 2015 年 5 月 14 日
Thanks David Young, this method was successful to me. regards.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by