mithunkamat / morse

Morse code audio generation tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Morse code audio generation tool

This tool can either play morse code directly or save to a WAV file. It translates plain text from stdin or the command line. The tone frequency, words per minute, and Farnsworth timing are also configurable through command line arguments. It should work on Mac, Linux, and Windows but has only been tested to play audio on Mac.

There is also a HTML5 version live here.

Usage

###Playing sound:

$ echo "Morse code message." |python3 play.py -f 750 --wpm 10

###Create audio file:

$ echo "Morse code message." |python3 play.py -f 750 --wpm 10 -o output.wav

Output: output.wav (converted to mp3)

###Translate to just . and - characters:

$ echo "Morse code message." |python3 morse.py
-- --- .-. ... .   -.-. --- -.. .   -- . ... ... .- --. . .-.-.-

Learn Morse code using Koch's method

Play a random sequence of 100 A, T, and R letters

$ ./koch.py --wpm=30 --fs=10 -l 100 "ATR"

Other audio formats

###Convert to mp3 or other formats with FFmpeg:

ffmpeg -i output.wav output.mp3

Output: output.mp3

Dependencies

About

Morse code audio generation tool


Languages

Language:JavaScript 50.5%Language:Python 38.9%Language:HTML 10.6%