Please sign in to access this page

Text to Morse Code

Text to Morse Code

7 devlogs
6h 51m
•  Ship certified
Created by Juha

Convert from any text (from file or copy pasted) to morse code! Fully customizable for CW training with farnsworth spacing. Made so that I can practice receiving up to 20wpms with my favorite books/articles :)

Timeline

Ship 1

1 payout of shell 92.0 shells

Juha

27 days ago

Juha Covers 7 devlogs and 6h 51m
Juha
Juha
1h 18m 27 days ago

I spent a baffling amount of time on trying to make executables for different operating systems and failed :( But it's ok cause I also made a github repo and READMEs. I messed up grandly by trying to retroactively apply .gitignore from a random Stack Overflow answer I didn't fully understand, but it's ok cause I used git config pull.rebase true and everything ended up fine :)

Update attachment

I asked my mom to try out the program and she broke it in five different ways. So now the program is much more user-proof! Yay!!

Added the option to save the audio file (and delete the temporary audio file if otherwise)! I also worked on the interface so that people can't specify weird/impossible options like playing at -3wpm.
Attached is a video. Turn the volume up to hear the generated morse code at the end!

  • I made my own library for tones and stopped using pysine because I was working with numpy anyways.
  • I added fade in/out to the tones so there's less clicky noises.
  • I saved it to a .wav file and had the program play the file instead of real-time generation because oh wow things get really messed up when other programs (like system audio recorders) also need access to the audio stream.
  • The first chapter of Moby-Dick takes 1hr 13mins to play at 30wpm.
Update attachment

Turns out the pop was because the audio library I was using essentially initializes a new audio stream every time I play a single tone. I made a new function inside the library to play multiple sounds all in one stream. No more weird speaker noises!

Update attachment

Good news: Sound plays! And it kinda sorta resembles what it's supposed to sound like!
Bad news: Every time the sound plays there's a small pop of the speakers. Also, the morse code is really, really, slow.

Update attachment
Juha
Juha
1h 28m 29 days ago

Made all user-interactive parts, as well as a config file to store/read from!
I made this program primarily to experiment with shell/terminal interfaces. I've been learning morse code recently, so I wanted a lightweight python script that I can use to listen to Moby-Dick at 20wpm :)

Update attachment