Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

Morse Code Library

This is a simple Python-based Morse code library. It can be used to convert text into dits and dahs as text and/or as sounds through the soundcard.

Requirements

  • numpy
  • pygame

Example of converting text

from morsecodelib import text
text.text_to_code('testing text to code converSION!')

This prints: - . ... - .. -. --. - . -..- - - --- -.-. --- -.. . -.-. ... .. --- -. -.-.--

Example of playing sound

from morsecodelib import sound
morse_sound = sound.MorseSoundPlayer()
morse_sound.text_to_sound('HI THERE THIS IS A TEST')

About

Library to deal with Morse Code.

Resources

License

Releases

No releases published

Packages

No packages published

Languages