From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
08-17-2009 01:10 PM
I have a task where I am programming a robotic system and control unit. I am using a laptop for the control unit. On the laptop is a microphone. What I would like to do is capture the audio from the microphone and transmit this via the radio to the robot to play on a speaker. The radio plugs into the com port on the laptop. I can transfer a .wav file by using the Flatten to String.vi send and unFlatten on the other side. What I need to do is stream the audio as it is collected from the microphone. Is this possible? If so, any suggestions would be appreciated.
08-17-2009 03:43 PM
11-30-2010 01:51 PM
I just wanted to see if anyone has come up with anything for this yet. I'm currently working on getting streaming audio over serial as well and have only just started.
Does anyone have any example VIs that would help with this?
I'm thinking about converting the input sound waveform into a digital wave, and then transmit the bits over serial,after I convert the binary array to ASCII so I can input the data into the Serial-Write VI. If anyone has any other ideas, I'd love to hear them. I'm also considering using some sort of compression/encoding, if needed, but probably won't need to go that far.
12-02-2010 09:30 AM
Weizbox:
As Coq rouge mentioned, the major limitation is the data rate provided by the serial port. Streaming will be difficult at best, and you'll get extremely poor quality if you degrade the audio enough to stream it. If you want to transfer the audio, your best bet is probably to take goofylogic98's approach and flatten the data to a string. That will make it easiest to transfer the data using VISA functions. If you're looking for examples on those, just search "serial" in the NI Example Finder in LabVIEW.
Hope that helps!