Skip to content

Images to audio files with corresponding spectrograms encoder.

License

Notifications You must be signed in to change notification settings

pi4erd/spectrology-python3-fix

This branch is 6 commits ahead of solusipse/spectrology:master.

Repository files navigation

spectrology

Images to audio files with corresponding spectrograms encoder.

Dependencies

You can use virtualenv module for python. Create a virtual environment:

python3 -m venv venv

# For Unix-like systems
source venv/bin/activate

# For Windows
./venv/Scripts/activate.bat

And then install dependencies using

pip install -r requirements.txt

Or you can install dependencies standalone:

pip install -r requirements.txt

Usage

usage: spectrology.py [-h] [-r] [-o OUTPUT] [-b BOTTOM] [-t TOP] [-p PIXELS]
                      [-s SAMPLING]
                      INPUT

positional arguments:
  INPUT                 Name of the image to be convected.

optional arguments:
  -h, --help            show this help message and exit
  -r, --rotate          Rotate image 90 degrees.
  -o OUTPUT, --output OUTPUT
                        Name of the output wav file. Default value: out.wav).
  -b BOTTOM, --bottom BOTTOM
                        Bottom frequency range. Default value: 200.
  -t TOP, --top TOP     Top frequency range. Default value: 20000.
  -p PIXELS, --pixels PIXELS
                        Pixels per second. Default value: 30.
  -s SAMPLING, --sampling SAMPLING
                        Sampling rate. Default value: 44100.
python3 spectrology.py test.bmp -b 13000 -t 19000

spectrogram

For more informations on this techique, see this article: https://solusipse.net/blog/post/basic-methods-of-audio-steganography-spectrograms/.

License

See LICENSE.

About

Images to audio files with corresponding spectrograms encoder.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%