LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can you record sound using a USB 6211 and convert the data to a .wav (or other sound) file?

Hello,

I am trying to build a system that will use a USB 6211 to record sounds from multiple electret microphones and then save the data as a .wav file or other sound file.  I have already built my mics and hooked the mics up to the USB 6211; the DAQ device seems to do an adequate job recording the signal - I've recorded from 3 mics at a time at 11,025 Hz, although I don't know how good the signals are since I can't save them for playback after the fact, and they aren't going through my sound card. Ultimately, I would like to save the data as a multichannel audio file which I could then open in a program such as Audacity for further editing and analysis. Since Audacity can import a variety of sound files, my file format doesn't need to be .wav if another format would work better.

Any advice would be appreciated.

Thanks, Eric

0 Kudos
Message 1 of 4
(2,653 Views)
More specifically, sampling rate is 11,025 samples/sec.
0 Kudos
Message 2 of 4
(2,621 Views)

The USB-6211 should work fine if the mics are providing a decent signal.  Have you tried the Sound File Write.vi?  It takes waveforms and a file ref and stores the data in WAV format.  Post your code if you can't get it working...

 

EDIT: BTW, the Sound Output Write.vi should also allow you to monitor your mics through the PC's soundcard.

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 3 of 4
(2,614 Views)

If you are sampling all three simultaneously, your highest frequency recordable will be (11,025/2)/3, so about 1800Hz and that will pretty coarse (traditionally digital sound recording is at 44Ks/s at the low end). As to converting to a .wav, there are functions on the "Graphics and Sound" palette for saving waveforms to a .wav file.

 

 

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 4 of 4
(2,610 Views)