Skip to content

Turns an image into an audio file. Image is visible on the spectrogram.

Notifications You must be signed in to change notification settings

mahmoudimus/spectro-photo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

spectro-photo

Turns an image into an audio file. Image is visible on the spectrogram. ##Building

git clone https://github.com/kylophone/spectro-photo
cd spectro-photo
gcc ./spectro-photo.c -o spectrophoto -std=c99 -lm -O3

##Usage

spectrophoto in.jpg out.raw

##Output This will generate a 48k/32-bit floating point raw PCM file. You can listen to it with SoX like this:

play -c 1 -r 48000 -b 32 -e float -t raw out.raw

Generating a spectrogram with SoX looks like this:

sox -c 1 -r 48000 -b 32 -e float -t raw out.raw -n spectrogram

About

Turns an image into an audio file. Image is visible on the spectrogram.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 100.0%