This Python3 script deciphers a visual message encoded in an audio file using a provided noise file. It performs the following steps:
- Subtract the noise from the challenge audio file.
- Invert the resulting audio.
- Plot the spectrum of the inverted audio.
-
Install Python 3 if you haven't already. You can download it from the official Python website.
-
Install the required dependencies using pip, it is recommended to use a virtual environment for this. Run the following with the env activated:
pip install -r requirements.txt
- Run the script like:
python plot_spectrum_with_message.py
The script takes the files Challenge.wav
and WhiteNoise.wav
provided in this repository as defaults, but those can be provided as params too like:
python plot_spectrum_with_message.py /path/to/challenge/file /path/to/whitnoise/file
- Decipher the message plotted in the spectrum.
A result image result.png
is provided in this repository