← Index  /  Lab  /  006
006

Advanced Morse ML

My own Morse decoder that turns audio into text, designed and trained for beginners who key slowly and unevenly. Previous solutions only worked at a fixed speed of around 18 WPM.

ProjectAdvanced Morse ML
No.SWC-006
Rev.—
StatusIn progress
Since2025
PlatformPython
StackPython · PyTorch · Core ML
ScopeMy own model for decoding Morse code from audio
Drawn byM. Rogg, Basel
Sheet6 / 8
Fig. 1–2 · Screens
SCREENSHOT01 · Spectrogram
SCREENSHOT02 · Detections
§1 · Why

Beginners key slowly and unevenly. Previous solutions only worked at a fixed speed of around 18 WPM.

§2 · How

The model is called MorseNet: a learnable pitch tracker over a 21-band spectrogram, five dilated convolution blocks with residual connections and a GRU with explicit state, trained with CTC. It also outputs the sending speed. 980,000 parameters, 2.3 MB as a Core ML package, running in real time on the iPhone from iOS 15 as a streaming decoder with 800 ms lookahead. It is trained exclusively on synthetically generated Morse from 5 to 40 WPM with human timing variation, fading, echo, a leaking carrier, real ambient noise from the MUSAN and DEMAND corpora, measured room impulse responses and a simulated phone AGC. A dedicated dataset of 70,000 clips serves as an independent test set.

§3 · Learned

Work in progress. Notes follow once it ships.

Availability
Current status: on clean Morse from 5 to 35 WPM the character error rate is below 1%, with noise and a leaking carrier 2 to 5%. Fine-tuning on real recordings will follow. Code and weights are my own work; this includes the Core ML integration and a switchable word-correction mode with a language prior.