Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert Data to sound and back

Are there libraries out there that can convert data (text files, etc) to sound and back to the original data?

The sound can be transmitted any medium I wish, whether radio, etc. I just need to store data in sound files.

Scenario:

step1: Convert a .docx file with embedded images to .wav.

step2: Send over a radio wave.

step3: Convert this .wav back to the .docx file with the embedded images.

This concept can be applied to any data.

Technology:

.net or java

like image 578
Shawn Mclean Avatar asked Dec 19 '10 15:12

Shawn Mclean


People also ask

What converts sound into data?

electromechanical transducer, any type of device that either converts an electrical signal into sound waves (as in a loudspeaker) or converts a sound wave into an electrical signal (as in the microphone).

What does converting audio mean?

Converting audio The conversion of an analog signal into a digital version, is all about making a continuous waveform into discrete numbers.

How do you convert an audio signal to a digital signal?

This is done using an analogue-to-digital converter (ADC), while a digital-to-analogue converter (DAC) is used to reverse the process at the other end. An ADC works by first taking 'samples' of the soundwave, which measure its amplitude at regular intervals.


2 Answers

I think the medium is important, as are other factors such as the size of the files and the transmission time available. A simple algorithm would be to convert your files to text (UUENCODE should do that trick) then convert to morse code : http://www.codeproject.com/KB/vb/morsecode.aspx

Morse gives you a simple alphabet able to survive transmission over a fairly noisy radio channel.

If your carrier is cleaner a conversion of your UUEncoded file into a series of frequencies one per character would probably also work, and be easy enough to decode at the other end, Frequency Analyzer in C#

like image 78
Andiih Avatar answered Oct 20 '22 20:10

Andiih


You could try to use the magnetic card technology for your files, I'm also trying to do this on android. Any data can be converted to byte into a string of characters it very possible with java and android. then use the Encoding mechanism of Magnetic Cards API to encode the string to sound. Then you can just use the vice versa, convert the sound into string convert string into byte and save the data. It's just it takes time to convert both ways but it is feasible, I'm trying to do this so that any one with unlimited voice connection can transfer files or in the future browse the internet just through calling the other number. I hope I gave you some idea.

like image 40
Arvin Avatar answered Oct 20 '22 19:10

Arvin