11-06-2009 08:08 PM
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.
11-06-2009 10:18 PM
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.
11-07-2009 06:01 AM
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 realtime. My 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