https://github.com/hbidamian/pyimagetowav
Recreate audio from a wav file preview image (waveform)
https://github.com/hbidamian/pyimagetowav
Last synced: 2 months ago
JSON representation
Recreate audio from a wav file preview image (waveform)
- Host: GitHub
- URL: https://github.com/hbidamian/pyimagetowav
- Owner: HBIDamian
- License: apache-2.0
- Created: 2024-12-10T02:11:19.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-12-10T02:26:02.000Z (6 months ago)
- Last Synced: 2025-02-05T08:51:25.934Z (4 months ago)
- Language: Python
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PyImageToWav
This is a python script that converts an image to a sound wave. The script reads an image and converts it to a sound wave by reading the pixel values of the image and converting them to sound wave frequencies.## Files
- `imageToWav.py`: The main script that converts an image to a sound wave.
- `audioToImage.py`: The script that converts a sound wave to an image used for testing purposes.## Requirements
- Python 3 (See the scripts for the required libraries)
- ffmpeg (For converting the audio file to a image, used in `audioToImage.py`) It isn't required for the main script.## Acknowledgements
- [How NOT to Sample Audio - Computerphile](https://www.youtube.com/watch?v=VQOdmckqNro), Explained by [David Domminney Fowler](https://www.youtube.com/@domminney). This script is essentially a python port of the code in the video. I highly recommend watching the video to understand how the script works, and the theory behind it, as well as just giving the channel a watch in general, it's great!