dEEpEst
☣☣ In The Depths ☣☣
Staff member
Administrator
Super Moderator
Hacker
Specter
Crawler
Shadow
- Joined
- Mar 29, 2018
- Messages
- 13,861
- Solutions
- 4
- Reputation
- 32
- Reaction score
- 45,552
- Points
- 1,813
- Credits
- 55,350
7 Years of Service
56%
How can we see an audio ? Usually, by its waveform, but we can also see the visual representation of its frequency over time, which is a spectrogram.
Since every audio can be represented by a visual way, can we construct an audio file from an image, that will be reproduced as its spectrogram ? Yes, we can.
For Windows, I recommend to use the software Coagula Light to do it, which has a graphic interface, so you probably won't have problems:
If you are using a Linux distribution, just as me, you may use a perl script called imageSpectrogram, which you can get by git clone:
git clone https://github.com/plurSKI/imageSpectrogram.git
If you have problems trying to get GD, make sure that you have libgd2-xpm-dev:
sudo apt-get install libgd2-xpm-dev
And try again.
Now you are able to generate the audio file just by running:
./imageSpectrogram file.example
As it was expected, the sound is kinda weird.
Done
You did it, but at least, we can check it by opening it in Audacity:
This is showing us its waveform, but if we change to spectrogram by clicking right on the bar with the file's name, we can see:
Also, you can combine this with other methods, from now it's all up to you.
This link is hidden for visitors. Please Log in or register now.
Since every audio can be represented by a visual way, can we construct an audio file from an image, that will be reproduced as its spectrogram ? Yes, we can.
For Windows, I recommend to use the software Coagula Light to do it, which has a graphic interface, so you probably won't have problems:
This link is hidden for visitors. Please Log in or register now.
If you are using a Linux distribution, just as me, you may use a perl script called imageSpectrogram, which you can get by git clone:
git clone https://github.com/plurSKI/imageSpectrogram.git
Code:
And you will also need two Perl CPAN dependencies:
Code:
cpan Audio::Wav
Code:
cpan GD
If you have problems trying to get GD, make sure that you have libgd2-xpm-dev:
sudo apt-get install libgd2-xpm-dev
And try again.
Now you are able to generate the audio file just by running:
./imageSpectrogram file.example
Code:
To make sure that everything will run right, use black and white image with its extension in the name (.png, .jpeg...)
Check the steps in practice below:
[B]Choose the image[/B]
[URL="https://lh3.googleusercontent.com/ceVReAJOzoWHc81DrZOgJF6MuDj47xKQAOnuWYzfuL8ETdskD5CGrb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N25VRZ6KM7zYh22TqImIdL7cnhA4wcwVij8lI6T9acw62JZ7GGs1hqzNWGE6H10avvr7drF76_agAcwV0zGexw8G5xnUTjVWq7gEshFx13mKBYq8q17Eg3A_8rRXLvawFsXrlAgBjm4qWWnM85Anvdhbl6lOfLAqWlwKofwqsRrsm90_TWZCs30AIBajYFOzViesp1q1Wm7YeIB85QaOQHsEtTmhT9a66PeO=w625-h626-no[/IMG][/URL]
[B]Make sure you have the script[/B]
[URL="https://lh3.googleusercontent.com/3KGdrG9r-eAQneCo_GwktAlIo6biTw1b_Xdt1_eMEM_vvUfrvMuBNDZDtxl-6WXXHvlu077HSk3oCoZU549HnZjNzEmAXRajrdUyLkOWE-dn3IO65qST1nc6845Bu_jAMv6x84mRqKxy6bQNrvdCtQA5SwZ1tIEL1rjZdzXrfq-L4j4jpbjgYr89spCLxzMBxvVaLMusYHTZMW7Lw72slGa8DSYatB8nxRSzYOk89DPrPbydHupV8VaFWTpbJPMR5kUbzIkzDIO7V9AzDjvnYicbJ2s3G4JPmdyc-0umD6pvLkYYhqrGmlWgJvvpf0VGWFWptppvG2Rb2_Tii5uhVD0ZUZMbWncQEpA43XEJhBYZO-qsE4IVH7afypiGbl4G1LK61E8_ND5rhzIbIZFTxhP0NFhRcoev50GF7ci5zAEZmt3Ey8u0cuGLKUEjBZ-pPflJOXdFY22oJi60ICdkylq5tsmHXLcbjeNIPHD4Ifki1ssknPMkb5DRgjASdgktetizSXt3b3mm-hJ5QGJpIW3YU0E5Mqip4tWaiaaJomklKIIET1do-ewl7aQqLoKwOauKluVZjpn2OpU3uuuEIIlVUkNQvLvHA5v-Eky-WSaOqke7_yMdR39rHXEIl9gZcZAd0Ngtyx67-go1GNkD7P5Qr3S3e5jU=w562-h316-no"][IMG]https://lh3.googleusercontent.com/3KGdrG9r-eAQneCo_GwktAlIo6biTw1b_Xdt1_eMEM_vvUfrvMuBNDZDtxl-6WXXHvlu077HSk3oCoZU549HnZjNzEmAXRajrdUyLkOWE-dn3IO65qST1nc6845Bu_jAMv6x84mRqKxy6bQNrvdCtQA5SwZ1tIEL1rjZdzXrfq-L4j4jpbjgYr89spCLxzMBxvVaLMusYHTZMW7Lw72slGa8DSYatB8nxRSzYOk89DPrPbydHupV8VaFWTpbJPMR5kUbzIkzDIO7V9AzDjvnYicbJ2s3G4JPmdyc-0umD6pvLkYYhqrGmlWgJvvpf0VGWFWptppvG2Rb2_Tii5uhVD0ZUZMbWncQEpA43XEJhBYZO-qsE4IVH7afypiGbl4G1LK61E8_ND5rhzIbIZFTxhP0NFhRcoev50GF7ci5zAEZmt3Ey8u0cuGLKUEjBZ-pPflJOXdFY22oJi60ICdkylq5tsmHXLcbjeNIPHD4Ifki1ssknPMkb5DRgjASdgktetizSXt3b3mm-hJ5QGJpIW3YU0E5Mqip4tWaiaaJomklKIIET1do-ewl7aQqLoKwOauKluVZjpn2OpU3uuuEIIlVUkNQvLvHA5v-Eky-WSaOqke7_yMdR39rHXEIl9gZcZAd0Ngtyx67-go1GNkD7P5Qr3S3e5jU=w562-h316-no[/IMG][/URL]
[B]Run it and then you get the audio[/B]
Code:
./imageSpectrogram.pl bait.jpeg
This link is hidden for visitors. Please Log in or register now.
As it was expected, the sound is kinda weird.
Done
You did it, but at least, we can check it by opening it in Audacity:
This link is hidden for visitors. Please Log in or register now.
This is showing us its waveform, but if we change to spectrogram by clicking right on the bar with the file's name, we can see:
This link is hidden for visitors. Please Log in or register now.
Also, you can combine this with other methods, from now it's all up to you.