Building a Live Morse Code Decoder in the Browser Using the Web Audio API
A developer explains how to decode Morse code from a live microphone feed entirely in the browser, without a server or external libraries. The pipeline captures audio through an AudioContext, measures signal level with an AnalyserNode, and applies an adaptive threshold to produce an on/off stream. Each on/off duration is then classified as a dot, dash, letter gap, or word space, and a lookup table maps the results to letters. The approach relies on timing ratios rather than absolute durations, so it tolerates imperfect human sending speed. The whole decoder is described as under 150 lines of code.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in