MATLAB Answers

speech signal from Microphone USB

28 views (last 30 days)
hajer
hajer on 21 Dec 2011
hi , i have question . In matlab , can i take online speech signal from Microphone USB and use it in my code at same time ?? can do that ?????

  0 Comments

Sign in to comment.

Answers (2)

Chirag Gupta
Chirag Gupta on 21 Dec 2011
Try this: http://www.mathworks.com/help/techdoc/ref/audiorecorder.html. If you want to record analog data from your soundcard, you should also look at Data Acquisition Toolbox!

  5 Comments

Show 2 older comments
Walter Roberson
Walter Roberson on 22 Dec 2011
Multiple microphones implies multiple device ID's.
If you need to record from several different microphones at the same time, you would probably need the Data Acquisition Toolbox; audiorecord() is not suitable for that task (because it does not return control until all the data for that device has been read.)
hajer
hajer on 22 Dec 2011
thank you for helping ;
in Data Acquisition Toolbox can i play recorded sound.
Walter Roberson
Walter Roberson on 22 Dec 2011
You would be able to output sound to a device, but DAT does not itself provide routines to read recorded sounds.
http://www.mathworks.com/products/daq/
With the toolbox you can configure data acquisition hardware and read data into MATLAB and Simulink® for immediate analysis. You can also send out data over analog and digital output channels provided by data acquisition hardware.

Sign in to comment.


Daniel Shub
Daniel Shub on 28 Dec 2011
Depends what you mean by "same time." There is going to be a few milliseconds of latency. I would look at the MATLAB based port audio implementations. There are playrec and pa-wavplay (I am not sure i the latter handles input). My preference is for the audio part of the psychtoolbox http://docs.psychtoolbox.org/PsychPortAudio

  0 Comments

Sign in to comment.