How to convert image of sound wave to real sound - Page 1
Forum section: electronics / general

author: frenky
author_rank: Unknown
timestamp: March 22, 2016, 10:10:46 am
content: I have an image of a heartbeat that I would really like to hear.It looks like this (but it's mono):Is there any audio file format that is easy to create in text file?So that I could just input numbers like this: 10, 9, 7, 12, 7, 7, 8, each representing amplitude of one sine wave ... to "draw" a waveform?Then import it in Wavepad where I could manipulate frequency/amplitude if needed?Tnx in advance for any suggestions.

author: PA0PBZ
author_rank: Super Contributor
timestamp: March 22, 2016, 10:13:20 am
content: If this is the best resolution you have it's not going to work.

author: frenky
author_rank: Unknown
timestamp: March 22, 2016, 11:26:58 am
content: This is the best approximation of what I have:

author: Richard Crowley
author_rank: Super Contributor
timestamp: March 22, 2016, 11:50:03 am
content: The first image doesn't have enough resolution to accurately trace the wave-form. You could guess, but that would be the best you could do.The second image is too fuzzy to be able to even tell what it is.Yes, you could reproduce a sound from an image of the waveform by entering values along sample points of the waveform. But we typically take several 10s of thousands of samples for one second of audio sound.The label says "heartbeat". If that is what you want, there are probably hundreds or thousands of audio files of heartbeat sounds you could find on the internet. A heartbeat is a pretty low-frequency signal. You might be able to reproduce it with maybe 1000 samples of at least 3 digit range.It is simply not practical to try to reproduce the waveform of either of your images. It would be like trying to paint the portrait of someone in the background of a photo 100m away.

author: dexters_lab
author_rank: Unknown
timestamp: March 22, 2016, 11:51:33 am
content: good luck with that one!i did some googling and found this... which *may* do what you wanthttp://photosounder.com

author: Rerouter
author_rank: Super Contributor
timestamp: March 22, 2016, 12:00:17 pm
content: Its way too low a resolution to reproduce much more than a characteristic thud,I would suggest you try building your own ECG, its a very very simple circuit, below is an explanation for what each bit means,http://www.utm.edu/staff/cerkal/ekg-basics.pdfStill i will make this very clear, make sure there is no low resistance paths to the electrodes, as it will not take much voltage driven across them to upset your heart when its connected by very low resistance connections to the skin in such close proximity, most designs i can see use 3 AA's,e.g. herehttp://www.swharden.com/blog/2009-08-14-diy-ecg-machine-on-the-cheap/

author: frenky
author_rank: Unknown
timestamp: March 22, 2016, 12:11:52 pm
content: Ok some explanation... I would like to surprise my wife with a sound of our (unborn) baby. All I have is an ultrasound image of a heartbeat.Heart rate is approx 160 beats/min. So 1 beat is 375ms. With sample rate 8000 that is 3000 samples. Which is not impossible to create.I'll start with this example and use measured data from image:https://blogs.msdn.microsoft.com/dawate/2009/06/24/intro-to-audio-programming-part-3-synthesizing-simple-wave-audio-using-c/@dexters_lab:I tried that app on one random image of heartbeat and it actually sounded quite good. So when I get home that will be the first thing I'll try.

author: frenky
author_rank: Unknown
timestamp: March 22, 2016, 04:03:46 pm
content: With some tuning in the Photosounder I got out really nice sound.And record it by enabling Stereo Mix:http://www.howtogeek.com/howto/39532/how-to-enable-stereo-mix-in-windows-7-to-record-audio/Tnx to all!

author: mauroh
author_rank: Frequent Contributor
timestamp: March 22, 2016, 04:56:31 pm
content: Just tried photosounder with a scanned ultrasound image got yesterday (new baby coming also here).I actually have the audio and video straight from the ultrasound machine and the result is pretty much the same.I'm non an expert but I think also the ultrasound machine derive the audio from the image and it actually sound like a flow instead of a beat.Any ultrasound expert here??BTW thank you dexters_labMauro

author: PA0PBZ
author_rank: Super Contributor
timestamp: March 22, 2016, 07:39:39 pm
content: Quote from: mauroh on March 22, 2016, 04:56:31 pmThe ultrasound uses high frequency sound as a radar and what you can hear are the reflected waves. It also builds a picture from the reflected waves.That's why it sounds different from when you listen to a heartbeat using only audio, the ultrasound 'looks' at the movement of the heart and veins.

author: Richard Crowley
author_rank: Super Contributor
timestamp: March 22, 2016, 07:40:12 pm
content: It seems possible that the ultrasound machine could generate audio by one (or both?) of these methods:1) They may use transducers that can actually hear audio frequencies, so they could just split the received signal into "low-frequency" audio and "high-frequency" ultrasound return signals (which are used to construct into an image).2) They may use a "Doppler" method where they can sense that the received ultrasonic signal is a slightly different frequency. So they could "extract" a low-frequency audio signal by taking the difference between the frequency they SENT vs. the frequency of the signal they RECEIVED back.

author: Richard Crowley
author_rank: Super Contributor
timestamp: March 22, 2016, 07:42:35 pm
content: Quote from: PA0PBZ on March 22, 2016, 07:39:39 pmWell, you can't actually "hear" the reflected waves. Ultrasonic is, by definition, ULTRA (above) what you can hear.

author: PA0PBZ
author_rank: Super Contributor
timestamp: March 22, 2016, 07:44:18 pm
content: Quote from: Richard Crowley on March 22, 2016, 07:42:35 pmYes I know, I was trying to keep it simple. It's probably some kind of doppler.

author: mauroh
author_rank: Frequent Contributor
timestamp: March 22, 2016, 09:06:54 pm
content: Doppler make sense: to hear the heart beat the doctor selected the portion of the image where the heart was moving and depending on the angle of the probe the intensity of the sound changed, becoming higher when the direction of the motion was the same of the selection.It was also possible to visualize the blod going in and out of the heart with overlayed colors and this should be definitely doppler...I'll search online...Mauro

author: mauroh
author_rank: Frequent Contributor
timestamp: March 22, 2016, 09:39:48 pm
content: Confirmed, here for example....http://www.fda.gov/Radiation-EmittingProducts/RadiationEmittingProductsandProcedures/MedicalImaging/ucm115357.htmUnder Uses you will find:Doppler fetal heart rate monitors (to listen to the fetal heart beat)Doppler ultrasound (to visualize blood flow through a blood vessel, organs, or other structures)Mauro

author: mamaof2
author_rank: Newbie
timestamp: October 14, 2024, 06:27:12 pm
content: Hi, is there any way we can chat?I have been researching on how to create sound from a photo of my baby's heartbeat, exactly like how you talk about in this post I'm wondering if you can help me.

author: Alex Eisenhut
author_rank: Super Contributor
timestamp: October 14, 2024, 07:03:23 pm
content: I've always wondered what the scope screen shots in the into for The Six Million Dollar Man are...

author: Bud
author_rank: Super Contributor
timestamp: October 14, 2024, 09:02:30 pm
content: Quote from: mamaof2 on October 14, 2024, 06:27:12 pmYou can chat as much as you want with ChatGPT. Ask it your question.Perhaps you could feed the photo to a generative AI and ask to make an audio from it.