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.

Installation

img2wav can be installed from pip:

pip3 install img2wav

Usage

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


Release history Release notifications

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
img2wav-0.1.2-py3-none-any.whl (5.4 kB) Copy SHA256 hash SHA256 Wheel py3 Apr 17, 2018
img2wav-0.1.2.tar.gz (3.7 kB) Copy SHA256 hash SHA256 Source None Apr 17, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page