From: Lin on
Hi I am now doing a project on digital signal processing in the simulink. I used "From audio device" blocket as my input ( I talked to an mic) and "To Audio device" as my output (to the earphone)t to test recording a sound. There was a terrbile delay in the output and input.

My project is related to voice tranning,so that amount of delay is unacceptable.

If there's anything I can do to reduce the delay?( My desktop is top-of-line and should not be any hardware issue).

A small programming can speed up the process? Or There's any other settings I can make it fast.

For my current situation, the desktop pc is my only working host. So i guess it's impossible to use Xpc target to speed up the process.

Any other advice?

Thanks,

Lin
From: Arvind Ananthan on
Hi Lin,

For getting low latency on a PC, it's not sufficient to have high-end PC hardware; you need to have an high-end sound card that's typically supported through ASIO; usually the OS and the drivers matters too. The following link points to how one can recompile Port Audio drivers we use in our Signal Processing Blockset for Audio In/Out, to be used with a low-latency protocol such as ASIO, supported by many high-end sound cards.
http://www.mathworks.com/matlabcentral/fileexchange/18599-customized-audio-driver-support

Also, here's another link to a paper on using PCs for real-time audio prototyping solutions using MATLAB/Simulink:
http://www.mathworks.com/mason/tag/proxy.html?dataid=12345&fileid=59582

If one requires, any lower latency than 10-30 ms (depending on sound card), then the it's best to bypass Windows altogether, and go with xPC Target (con: only supported sound cards is an expensive multi-channel General Standards sound card) or an embedded target board (you can use a floating point DSP based evaluation kit containing stereo in/out that fully supported by Target Support Package), that can potentially offer you latencies in microsecs.

Hope this helps.
-Arvind

"Lin " <zhanglininshanghai(a)hotmail.com> wrote in message <i00f72$q49$1(a)fred.mathworks.com>...
> Hi I am now doing a project on digital signal processing in the simulink. I used "From audio device" blocket as my input ( I talked to an mic) and "To Audio device" as my output (to the earphone)t to test recording a sound. There was a terrbile delay in the output and input.
>
> My project is related to voice tranning,so that amount of delay is unacceptable.
>
> If there's anything I can do to reduce the delay?( My desktop is top-of-line and should not be any hardware issue).
>
> A small programming can speed up the process? Or There's any other settings I can make it fast.
>
> For my current situation, the desktop pc is my only working host. So i guess it's impossible to use Xpc target to speed up the process.
>
> Any other advice?
>
> Thanks,
>
> Lin
From: Lin on
Hi...Instead of using chipping in soundcard, we are using M-aduio as sound provider. So I also need recompile Port Aduio Drivers for that as you mentioned in the reply?
"Arvind Ananthan" <myfirstname.mylastname(a)mathworks.com> wrote in message <i0dj5a$t3f$1(a)fred.mathworks.com>...
> Hi Lin,
>
> For getting low latency on a PC, it's not sufficient to have high-end PC hardware; you need to have an high-end sound card that's typically supported through ASIO; usually the OS and the drivers matters too. The following link points to how one can recompile Port Audio drivers we use in our Signal Processing Blockset for Audio In/Out, to be used with a low-latency protocol such as ASIO, supported by many high-end sound cards.
> http://www.mathworks.com/matlabcentral/fileexchange/18599-customized-audio-driver-support
>
> Also, here's another link to a paper on using PCs for real-time audio prototyping solutions using MATLAB/Simulink:
> http://www.mathworks.com/mason/tag/proxy.html?dataid=12345&fileid=59582
>
> If one requires, any lower latency than 10-30 ms (depending on sound card), then the it's best to bypass Windows altogether, and go with xPC Target (con: only supported sound cards is an expensive multi-channel General Standards sound card) or an embedded target board (you can use a floating point DSP based evaluation kit containing stereo in/out that fully supported by Target Support Package), that can potentially offer you latencies in microsecs.
>
> Hope this helps.
> -Arvind
>
> "Lin " <zhanglininshanghai(a)hotmail.com> wrote in message <i00f72$q49$1(a)fred.mathworks.com>...
> > Hi I am now doing a project on digital signal processing in the simulink. I used "From audio device" blocket as my input ( I talked to an mic) and "To Audio device" as my output (to the earphone)t to test recording a sound. There was a terrbile delay in the output and input.
> >
> > My project is related to voice tranning,so that amount of delay is unacceptable.
> >
> > If there's anything I can do to reduce the delay?( My desktop is top-of-line and should not be any hardware issue).
> >
> > A small programming can speed up the process? Or There's any other settings I can make it fast.
> >
> > For my current situation, the desktop pc is my only working host. So i guess it's impossible to use Xpc target to speed up the process.
> >
> > Any other advice?
> >
> > Thanks,
> >
> > Lin