LinuxCommandLibrary

morse

converts text to and from Morse code

TLDR

Convert text to Morse code

$ morse "[Hello World]"
copy
Convert Morse to text
$ morse -d "[.... . .-.. .-.. ---]"
copy
Play Morse as sound
$ morse -a "[Hello]"
copy
Output with custom speed
$ morse -w [20] "[text]"
copy
Input from file
$ morse < [file.txt]
copy

SYNOPSIS

morse [options] [text]

DESCRIPTION

morse converts text to and from Morse code. It can produce audio output.
The tool encodes and decodes Morse. Supports audio playback on capable terminals.

PARAMETERS

TEXT

Text to convert to Morse code.
-d
Decode Morse to text.
-a
Play audio output.
-w WPM
Words per minute speed.
-s
Silent mode.
--help
Display help information.

CAVEATS

Part of bsdgames. Audio requires sound support. ASCII output by default.

HISTORY

morse originated in BSD games, providing educational Morse code conversion since the early BSD distributions.

SEE ALSO

beep(1), say(1), espeak(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community