Undefined function 'mtimes' for input arguments of type 'audiorecorder'.
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Shadi Ayyad
el 21 de Abr. de 2015
Comentada: Shadi Ayyad
el 16 de Mzo. de 2016
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 comentarios
Rui
el 5 de En. de 2016
Dear Shadi:
I am also working on the speaker reconganization project. Could you please send me the raghu ram codes.
Thanks very much
Rui
Respuesta aceptada
David Young
el 21 de Abr. de 2015
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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Audio and Video Data en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!