Real time audio processing with Simulink / Real time Win target using sound card?

Real time audio processing with Simulink / Real time Win target using sound card?

Post by Andrew » Thu, 30 Mar 2006 09:08:52


Hi,

I have some adaptive filtering routines in set up in simulink using
pre-recorded sounds at the moment, and I would like to run them in
real-time. Ideally I would like to create a setup with two analog
input channels from my sound card (one for sound, one for ambient
noise), perform the filtering in realtime, and ouput the filtered
sound directly to the output speaker in realtime (presumably there
will be a few hundred ms delay but that is fine). Being able to
switch from LMS to RLS adaption algorithms without having to stop the
simulation would be great but not essential.

Is this possible with Simulink and Real time Windows target? I have
been trying to incorporate an analog input block, but Matlab wants me
to install a new data aquisition board. All I have is a sound card,
which works with recoding using:
AI = analoginput('winsound')
etc.

If not, what is the best way to do realtime audio processing in
Matlab? Any help, or pointing me in the direction of examples or
further information, would be greatly appreciated!

Regards,
(email: remove capitalized, keep both underscores)
Andrew N
 
 
 

Real time audio processing with Simulink / Real time Win target using sound card?

Post by Darel Line » Thu, 11 May 2006 21:59:16

Hello,

Have you tried the To/From Wave Device blocks in the Signal Processing
Blockset for your I/O?

Darel Linebarger