Skip to content

🖼️🎵 Hide grayscale image in spectrogram by encoding pixels with sine waves

Notifications You must be signed in to change notification settings

tuomastik/pixelsound

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pixelsound

Convert a grayscale image to sound and visualize the produced sound with a spectrogram, where the original image is seen.

Encoding: The conversion is done by encoding each pixel in the image to a sine wave, where frequency corresponds to the row of the pixel and amplitude corresponds to the intensity of the pixel.

Decoding: The audio is decoded by Fourier transform, which decomposes the signal into the frequencies that make it up. The original image is restored with a spectrogram, which shows the spectrum of frequencies as a function of time. Amplitudes of frequencies are represented by the intensity or color in the spectrogram.

Try it out

Visualize this audio clip with this online spectrum analyzer: https://academo.org/demos/spectrum-analyzer/.

About

🖼️🎵 Hide grayscale image in spectrogram by encoding pixels with sine waves

Topics

Resources

Stars

Watchers

Forks

Languages