MATLAB Answers

Use of soundcard in Simulink!

2 views (last 30 days)
There is no proper Element in Simulink to include the soundcard of the laptop in real time. In standard Matlab there is the function autiorecorder. I would like to do the same in Simulink. In my special case it is a Realtec soundcard with interior microphone. A USB microphone could be an alternative.
  1 Comment
Jörg Bienert
Jörg Bienert on 7 Dec 2017
Thak you very much for the answer. Unfortunately our academic license does not include the audio toolbox. I was used to work with audio in the past in a different license environment.

Sign in to comment.

Accepted Answer

Nick Choi
Nick Choi on 7 Dec 2017
The 'Audio Device Reader' block in the Audio System Toolbox would allow you to read audio from your computer's sound card. The following documentation page provides additional information on how to use this block:
Additionally, this link contains an example of how this block can be used to read audio from a computer's sound card and then write audio to the computer's speakers:

More Answers (0)

Community Treasure Hunt

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

Start Hunting!