Convert Data to sound and back

前端 未结 6 2324
旧巷少年郎
旧巷少年郎 2021-02-15 19:50

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 rad

6条回答
  •  -上瘾入骨i
    2021-02-15 20:09

    The problem is that the data in a word document doesn't necessarily make decent sound. If you pick a 1.8kHz carrier and use the binary contents of the word document to modulate the volume or the frequency (AM or FM) the result will be messy and hardly to decode.

    But if you save the document as a bitmap, you can use the pixel values to modulate the volume of the carrier wave.

    We've been sending pictures (not just black/white but greyscale and color (three different separations of the image, r, g and b) over phonelines using this method for many years before modems and the internet took off.

    The fun part is that you can broadcast data this way. The sound can be received by more than one receiver at the same time. There's no error correction, but as you deal with visual data, you don't have to worry about a few pixels getting lost. It's similar to old fax protocols.

提交回复
热议问题