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


Download files

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

Source Distribution

img2wav-0.1.2.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

img2wav-0.1.2-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file img2wav-0.1.2.tar.gz.

File metadata

  • Download URL: img2wav-0.1.2.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for img2wav-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c94bfba363bcf244027d8f2124198aa94f77b9b96d3cfa27272c21e38122737a
MD5 7fcfebda2402918793b032b2a8fcfb03
BLAKE2b-256 02d0dc554c93be284837185327f20a09c98cbe61fbf04159f4df7ef0a6df11b5

See more details on using hashes here.

File details

Details for the file img2wav-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for img2wav-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 13e9940f9547e7ba165fb78c346e8a53ce0c7938e94ba7bbaecbb0ab2950768a
MD5 a2bed009575e7bdd717d18a7834b5774
BLAKE2b-256 840473bb254504c4d764141c1e1783db5431290888c22addbcb29e27fce50c2b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page