speech signal from Microphone USB

13 ビュー (過去 30 日間)
hajer
hajer 2011 年 12 月 21 日
回答済み: Gabriele Bunkheila 2020 年 8 月 24 日
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 ?????

回答 (3 件)

Chirag Gupta
Chirag Gupta 2011 年 12 月 21 日
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 件のコメント
hajer
hajer 2011 年 12 月 22 日
thank you for helping ;
in Data Acquisition Toolbox can i play recorded sound.
Walter Roberson
Walter Roberson 2011 年 12 月 22 日
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.

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


Daniel Shub
Daniel Shub 2011 年 12 月 28 日
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
  22 件のコメント
Walter Roberson
Walter Roberson 2020 年 8 月 12 日
You just might be able to continue using imageInputLayer, but instead of an image of a spectrogram, you would pass it the array of specs data
Hamza Ashraf
Hamza Ashraf 2020 年 8 月 13 日
From my data fucntion it can be seen that am passing the array of specs and labels but still am not getting acurate results

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


Gabriele Bunkheila
Gabriele Bunkheila 2020 年 8 月 24 日
I work at MathWorks and I have just noticed this so I thought I'd drop a note.
I understad from your question that you were looking to process the acquired audio live (aka in "real time", or "in the loop") using a standard sound card. In all such situations we recommend looking first at audioDeviceReader and audioDeviceWriter in Audio Toolbox, which were specifically designed with that use case in mind.
The doc page below should help you get started and it includes a few links to additional resources:https://www.mathworks.com/help/audio/gs/audio-input-and-audio-output.html
Another useful page full with code examples and explanations can be found below:https://www.mathworks.com/help/audio/gs/real-time-audio-in-matlab.html
Thanks and good luck with your project.

カテゴリ

Help Center および File ExchangeUsing audio files についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by