LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with real-time audio streaming

Hi,

 

 I am trying to implement real-time audio streaming and save the output to a .wav file. Instead of using the Aquire Sound component, I need to use the Sound File Input component. But the output I get is a gradually degrading version of the input. Could someone please help me figure out where the bug in my circuit lies?

 

Thanks for your time. 

0 Kudos
Message 1 of 3
(3,272 Views)

One odd thing I see is that in your upper Sound Input Reading area, you have the configure Input VI inside the while loop.  Why are you configuring it on every iteration of the loop?  It would make more sense to be outside the loop like you did in the lower sound output writing area.

 

You say you have a "bug in my circuit".  Are you talking about your physical electrical/electronic circuit?  You haven't mentioned anything about your hardware.  If you are talking about your LabVIEW program, it is not a "circuit".  The code is located in the block diagram.

0 Kudos
Message 2 of 3
(3,264 Views)

hdavuluri wrote:

Hi,

 

 I am trying to implement real-time audio streaming and save the output to a .wav file. Instead of using the Aquire Sound component, I need to use the Sound File Input component. But the output I get is a gradually degrading version of the input. Could someone please help me figure out where the bug in my circuit lies?

 

Thanks for your time


First you must do as Ravens Fan suggest. I also think you will find some examples shipped with Labview useful. Go to to toolbar->help->Find Examples. I must also warn you about two facts. First the Labview sound system is not the best coding job done by NI, but high on the list regarding worst jobs. Then it is the fact that Windows is not a realtime system. So it is no way you will get realtimeMy bet is  20msec delay at the best. I will also recommend that you use the old Labview sound system used in 7.x version. This system is somewhat better. You find it here ...\Program Files\National Instruments\LabVIEW 2009\vi.lib\sound



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 3 of 3
(3,246 Views)