ebook2cw ebook2cw is a command line program which converts a plain text ebook to Morse code audio files.
It works on several platforms, including Windows and Linux.
A number of CW and audio parameters can be changed from their default values, by command line switches or
a config file (see below). These are (default values in brackets):
-wwpm - CW speed in words per minute [25]
-ewpm - Effective CW speed. If set, the spaces are sent at this speed instead of the character speed set
by -w ("Farnsworth").
-Wx - Extra Word spacing. Similar to -e, but only affects the inter-word spacing, not the
inter-character spacing.
-ffreq - audio frequency in Hz [600]
-TSINE|0|SAWTOOTH|1|SQUARE|2 - set waveform to sine, sawtooth, squarewave. [sine]
-Qminutes - Increase CW speed (QRQ) by 1 WpM in intervals of `minutes'. Speed will be reset to the
initial value at the start of each chapter. [0]
-n - Disables resetting the speed when using the -Q option.
-p - Disables the paragraph separator (<BT>)
-Rrisetime - risetime, in samples [50]
-Ffalltime - falltime, samples [50]
-O - Use OGG/Vorbis encoder instead of MP3 if compiled with OGG support
-X - Do not encode, do not generate output files
-ssamplerate - samplerate for the OGG/MP3 file [11025]
-bbitrate - MP3 bitrate, kbps [16]
-qquality - MP3 quality, 1 (best) to 9 (worst). CW still sounds very good with the worst quality,
encoding time is greatly reduced. [5]
-cchapterseparator - Split chapters at this string [CHAPTER]. If empty or starts with a dash,
chapters will not be split and the output files will not be numbered.
-dduration - Splits output files after "duration" seconds; finishes the current sentence.
-lwordlimit - Splits output files after "wordlimit" words; finished the current sentence.
-ooutfile-name - Output filename (chapter number and .mp3/.ogg will be appended) [Chapter]
-aauthor - Author for the ID3 tag. Use quotes for strings with spaces (e.g. "JW Goethe")
-ttitle - Title for the ID3 tag. Use quotes for strings with spaces (e.g. "Faust II")
-kcomment - Comment for the ID3 tag. Use quotes for strings with spaces.
-yyear - Year for the ID3 tag.
-u - Switches input encoding format to UTF-8. Currently supported alphabets include Latin, Greek, Hebrew,
Arabic and Cyrillic. Default is ISO 8859-1.
-Efile - Loads configuration from `file`.
-gfile - Guesses the encoding of `file` (ISO 8859-1 / ASCII or UTF-8).
-S[ISO|UTF] - Shows a table of all available morse symbols for the ISO 8859-1 and UTF-8 character sets.
Output in HTML format.
-Nsnr - When this option is used, a noise background is added to the file and the CW signal is scaled
down to achieve a SNR (Signal to Noise ratio) of "snr" dB. Possible range of SNR: -10db to 10dB. Make
sure to enclose the value in quotation marks if it's negative (i.e. -N "-3").
-BbandwidthinHz - Sets the filter bandwidth if the -N / SNR option is used. Available filters are
100Hz, 500Hz, 1kHz and 2.1kHz.
-CfrequencyinHz - Sets the center frequency of the filter if the -N / SNR option is used. This should
be set to the frequency of the Morse signal; currently implemented center frequencies: 800Hz