Morse applet

This applet will send morse code, corresponding to the text in the box on the right, through your sound card (use your computer's volume controls to control the volume). It can import a text file using the File->Read text file menu item. It can produce a wave file as output using the File->Write wave file menu item. The speed in words per minute, the tone frequency in Hz, and the rise time of the keying in milliseconds are input parameters. The speed uses the standard word PARIS, so a dot is 1200/wpm milliseconds full width at half maximum. The rise time is the smaller of the given rise time and 150/wpm. To start, type something in the large text area on the right and click the play button.

You can also run this as a java application. Download (right click) morse.jar, and either click on it to run it, or on a command line try
java -jar morse.jar
javaw -jar morse.jar
in the directory where you saved morse.jar.

I use lame to convert the wave files to mp3 files. I find that
lame --highpass 300 --lowpass 1500 -h filename.wav filename.mp3
works well and does not produce annoying artefacts.

A command line text to wave converter is also included in morse.jar. I find it convenient to use in scripts. If you have downloaded morse.jar
java -cp morse.jar file.txt file.wav 45 600 1
will produce the wave file, file.wav, from the text file, file.txt, at 45 wpm, 600 Hz tone, with a 1 millisecond rise time. The source code is available here.