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.
images
folder.convert("image.jpg")
, replace the image name with your ideal image name.red.jpg
.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.