simonnchong / Image-to-Sound

The auto-generated sound is vary based on the input which is image, in my design, the duration of sound is depends on the size of image – total pixel in an image, but in order to reduce the difference of duration between different images size, so I only retrieve the leftmost digit of total pixel and take its ceiling number. Besides, the frequency of the sound is depending on the average RGB value in that particular image, so there will be 3 frequencies in a sound file.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Image-to-Sound

1. Download this repository in zip or directly clone it to your local machine.

2. Add the path or folder to your matlab and add your image into images folder.

3. Run convert("image.jpg"), replace the image name with your ideal image name.

4. Hit enter then you will see a pop out windows to display the result.

Example output of red.jpg.

Scene2

About

The auto-generated sound is vary based on the input which is image, in my design, the duration of sound is depends on the size of image – total pixel in an image, but in order to reduce the difference of duration between different images size, so I only retrieve the leftmost digit of total pixel and take its ceiling number. Besides, the frequency of the sound is depending on the average RGB value in that particular image, so there will be 3 frequencies in a sound file.


Languages

Language:MATLAB 100.0%