LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Storing Sound Data?

Hi everyone,
 
This one is a weird question but here goes...
 
...I would like to know if its possible to record the microphone but store it as data locally, in a string format / text file for later playback?
 
I just want to make sure this is possible before I spend hours trying it 🙂
 
Thanks
0 Kudos
Message 1 of 6
(3,305 Views)
The question is weird. Why do you want to save it as text instead of as a .wav file?
0 Kudos
Message 2 of 6
(3,283 Views)

Yes, it is possible.

If you have your acquired sound data in an array of numbers, you can store it as an ASCII file (need to convert from numbers to corresponding ASCII strings using the Format Into String or String/Number Conversion functions) or convert it to a spreadsheet file (look for the Write to Spreadsheet file VI in the File I/O function palette).

authored by
Christian L, CLA
Systems Engineering Manager - Automotive and Transportation
NI - Austin, TX


  
0 Kudos
Message 3 of 6
(3,275 Views)
Hi,

I am wanting to transfer the data as a string along a cable and store it for possible playback. Like a really low scale encoding / security on the sound file. It is a small project I am working on really.

Thanks for your replies, now I know it is possible I will give it a attempt.
0 Kudos
Message 4 of 6
(3,262 Views)
Does anyone have an idea on how to read a spreadsheet and fill an array of the below type?:



I can get it to write a spreadsheet file acquiring sound on the fly from one of these arrays, but cant seem to read it back and fill a blank array 😞

Thanks
0 Kudos
Message 5 of 6
(3,252 Views)
Here's a quick example of writing an array of numbers to a spreadsheet file and reading it back in.
authored by
Christian L, CLA
Systems Engineering Manager - Automotive and Transportation
NI - Austin, TX


  
0 Kudos
Message 6 of 6
(3,236 Views)