This is a shell script which
- Fetches books in different languages from Project Gutenberg
- Selects random lines from the books
- Converts these lines to morse code in MP3 format at different speeds
This is useful for training CW on semi-random text: parts of sentences make sense, but language changes continuously and within sentences.
Plenty of material on different speeds is available at https://github.com/camilstaps/Gutenberg-CW/releases. Let me know if you need more, different settings or so, and are unable to generate the files yourself - I will upload some more then.
For the first time, use:
./genlib.sh new
This may take a while. After that, you can remove the cache
directory (which
contains the entire Gutenberg catalogue listing) and simply use:
./genlib.sh
This will use the same books as before, but select different random lines. To
fetch new books, use ./genlib.sh new
again (which will need to download the
whole catalogue again, in case you removed it).
Options can be set at the top of the script:
LANGS
: the languages to select books fromFILESPERLANG
: how many books to pick per languageLINECOUNT
: how many lines to select from all the books
WPMS
: a list of the character speeds to generateEWPMS
: a list of the effective character speeds (spacing speed)FREQ
: the frequency toneDURATION
: the duration per MP3 file in seconds (approximately; the sentence will be finished)
AUTHOR
: the ID3 author tagALBUM
: the ID3 album tag (the WPM and EWPM are appended, such that an album titleCW Book
will become e.g.CW Book (20/12 wpm)
)TITLE
: the ID3 title tag (the nr. of the file is appended, such that a titleCW Book
will become e.g.CW Book - 2
)FILENAME
: the filename (the nr. is appended, such that a filenamebook
will become e.g.book0002.mp3
)
Converting text to CW is done using Fabian Kurz's ebook2cw.
This script was written by Camil Staps PD7LOL. It is hereby released into the public domain.