Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kylophone/spectrophoto
Turns an image into an audio file. Image is visible on the spectrogram.
https://github.com/kylophone/spectrophoto
Last synced: 11 days ago
JSON representation
Turns an image into an audio file. Image is visible on the spectrogram.
- Host: GitHub
- URL: https://github.com/kylophone/spectrophoto
- Owner: kylophone
- License: mit
- Created: 2015-04-04T17:20:13.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-30T19:57:24.000Z (over 7 years ago)
- Last Synced: 2024-10-16T15:29:42.248Z (26 days ago)
- Language: C
- Size: 719 KB
- Stars: 177
- Watchers: 10
- Forks: 19
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# spectrophoto
Turns an image into an audio file. Image is visible on the spectrogram.
## Building
```bash
git clone https://github.com/kylophone/spectrophoto
cd spectrophoto
gcc ./spectrophoto.c -o spectrophoto -std=c99 -lm -O3 -Wall
```
## Usage
```
spectrophoto in.jpg out.pcm 10
```
## Output
This will generate a 48k/32-bit floating point raw PCM file. You can listen to it with SoX like this:`play -c 1 -r 48000 -b 32 -e float -t raw out.pcm`
Generating a spectrogram with SoX looks like this:
`sox -c 1 -r 48000 -b 32 -e float -t raw out.pcm -n spectrogram`