# How to transform SoundWave Picture to sound?

I would like to recreate a sound from a picture of a soundwave.

But i see a lot of theorical question.

And im not sure its possible....

I mean, it is possible to create a sound...

But to make the sound as close as possible of the original one, sound a bit harder.

Most of the time when you see soundwave as art...

It's really time compressed.

I would love to have a tatoo of the soundwave of someone important to me that say a word to me.

And then with my smartphone point the camera at the tatoo and hear it again.

First how can i get the periodicity? Per pixel i will probably got a lot of periode. How can i decide the lenght of my whole song? I have a sound wave but no legend. so it can be 1s or 160s compressed i can never know....

Let's say i cheat and decided my application always says from start to end of my soundwave i have 1s (1s is enough for a 'I love you' for exemple)

Ok so i have my length total so with open cv i can check my image and reconise bar height every pixel. And then with my pixel length and the fact i know it's one second i can start to generate sound.

But how can i decided.... the corresponding value to the Heigh in pixel? I don't have frequency value correspondance. 12px heigh can be 20Hz as 20 000Hz

Ok let's say i define a value to the max height of my sound wave to the real value of my sound. Cause i use a sound i choose. So i can set a reference value and use it to get other value.

I now parse a picture to get a compressed sound and i have some value of Hz in an intervall of second.

Lets say i have a 10cm tatoo of a 1s sound. each cm is 0.1s

And in each cm i can make like... 10 bar maybe 20 (one bar is 1mm or 0.5mm possible in tatoo right?) Let say 20 ...

so i have info of Hz every 0.005s

and let say i decide i start up and and bottom i hav two info in 0.005s the up and bottom one So i have one info for 0.0025s

That make a sound at 400Hz... And... classical sound are know to be around 44 100Hz....

Will the sound i produce be at little close to the real one? Or does it will only be a little noise?

(English is not my mother tongue feel free to improve i will try my best to reformule if you didn't understand something)

• Just a silly idea, so not posted as an answer. QR codes can hold up to 7000 bytes of binary data. Write a program for smartphones that reads QR codes, and plays back the (short) audio file encoded in the QR code. You could use low bit rate uncompressed audio, or use something like the speex codec for longer messages. You then need an encoding program to create the QR code, and a really good tattoo artist accurately put it to skin. You need the smart phone program and encoder even if you were to go the spectrogram route. – JRE Oct 28 '17 at 9:09
• There are also programs that combine a QR and a picture. You could (maybe) combine a (very small) compressed recording with the picture. The picture is, naturally, just a pixelized version of the picture, but might be good enough to recognize the person. – JRE Oct 28 '17 at 9:14
• The soundWave seems cooler than the QR codes ^^ But... If soundWave is not possible QR code can be a possibility – Jebik Oct 30 '17 at 9:04