Skip to main content

Convert images to wav audio files to view in a spectrogram

Project description

img2wav is a simple command line utility to convert image files into audio clips suitable for display in a spectrogram. Multiple images can be specified to create a scrolling display.


img2wav can be installed from pip:

pip3 install img2wav


img2wav provides a simple command line interface to generate wav files. It’s relatively easy to tune parameters for waveform generation, allowing you to optionally specify the delay between images, center frequency, image bandwidth, and output file samplerate.

$ img2wav -o res/hackers.wav res/images/*
[*] Writing wav file: res/hackers.wav
[*]   Center frequency: 2750hz
[*]   Bandwidth       : 4000hz
[*]   Sample rate     : 11025hz
[*]   Delay           : 2000ms
[*] Processing: res/images/glider.png
[*] Processing: res/images/hackers.bmp
[*] Processing: res/images/hacktheplanet2.bmp
[*] Processing: res/images/hacktheplanet.jpg
[+] Done
Spectrogram output example

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for img2wav, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size img2wav-0.1.2.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View
Filename, size img2wav-0.1.2-py3-none-any.whl (5.4 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page