Last night I read up on morse code and wanted to use what I learned to do something fun.
I decided to create a “What is my IP-address” service (I know, there are plenty) and have it give you the IP in morse code as well as in plain text, here’s the result.
It took a little longer than I thought it would to create a wav-file through PHP with all the dits and dahs, wav-headers and whatnot – but I got there in the end.
Didn’t expect it to be so hard to get it to play on a website either; I am now using three layers:
- HTML5 audio for browsers that support it
- <bgsound> for IE5, 6, 7
- Flash, for others
Unfortunately, I have not managed to get it to play on my Android phone yet – I hear Gingerbread has support for HTML5 audio though.
Not at all satisfied with the look of the site, I just threw something together in a hurry – so it will be prettier at some point. Have a look at http://morsemyip.com/