Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Are there any programs or tricks to converting any file, say a text file or a picture, into a music file like MP3 or WMA? To be clear, I'm not looking for text-to-speech, I mean literally use the bytes in a file as music. I searched for it on Google but all I found was text-to-speech software.

share|improve this question
    
This might help you write your own, if you're experienced with Java: stackoverflow.com/questions/2787157/… –  rink.attendant.6 Jul 25 '13 at 5:21
    
I wonder if you just want to listen to some "interesting" noise or are trying to do some kind of very simple (and easy to detect) steganography? –  Dubu Jul 25 '13 at 7:23
add comment

1 Answer 1

It's possible to do, but I've not seen any programs to do so.

At the most basic level, it's possible to convert the 0s and 1s into two sounds with different frequencies and play them in sequence. Beyond that, one can perform an inverse FFT with the bits in the bytes representing different frequencies, or one can even do what modems do and modulate the amplitude and phase of a sine wave in order to encode the data as sound.

share|improve this answer
1  
One doesn't need a special program for that; some audio formats (I would guess PCM .wav, maybe also .au/.snd) are as close as "raw" as possible, and even things like aplay /var/log/syslog can produce interesting sound patterns. –  grawity Jul 25 '13 at 6:11
    
If you're only going one way, sure. But if you want to round trip the data, you're going to need something a bit more discrete. –  Ignacio Vazquez-Abrams Jul 25 '13 at 6:14
    
Could reuse the mechanisms used by dial-up modems or C64 tape recorders, then. –  grawity Jul 25 '13 at 6:42
    
Yup. As I described. –  Ignacio Vazquez-Abrams Jul 25 '13 at 6:42
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.