So I have an image like this

(source: bytearray.org)
Is there any algorithm to extract (get as PCM) sound from which was created that image?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Basic answer is yes.. sort of. But not from that exact picture. That is because that picture is an extremely time-compressed waveform of the sound. There are likely sound waves missing in that picture hidden between 1 pixel and the next.
In case you’re wondering the algorithm is:
where sound_resolution is 128 if 8 bit and 32768 if 16 bit.
But, as I said, that image is too compressed. You have multiple pixels squished into a single vertical line. You can’t correctly extract pixel_height form that.