Signal decoders

Audio signal decoders

Some sounds carry a message: the beeps of Morse code, the two-tone chirps of a phone keypad, or the hum of an engine that rises with its speed. These decoders listen for that pattern and turn it into text, digits or RPM. Start with the Morse code decoder, which reads CW from your mic or a recording.

How a decoder listens

A spectrum analyzer looks at every pitch at once. A decoder does the opposite: it listens hard to one or a few pitches and ignores the rest. Think of it as a row of tuning forks that each ring only for their own note. In code this is a tone filter, often the Goertzel filter, which measures how strong one exact frequency is, many times a second.

Each decoder then reads a pattern from those levels:

  • Morse code is one tone switched on and off. The decoder times each beep and each gap. A dash is three times as long as a dot, so at 20 words per minute a dot lasts 60 ms and a dash 180 ms.
  • Phone keypad tones (DTMF) are two tones at once, one from a low group (697, 770, 852 and 941 Hz) and one from a high group (1,209, 1,336, 1,477 and 1,633 Hz). The pair names the key: 770 Hz with 1,336 Hz is the 5.
  • Engine RPM comes from the firing rate. A four-stroke engine fires each cylinder once every two turns, so a 4-cylinder at 3,000 RPM makes a strong tone at 3,000 ÷ 60 × 4 ÷ 2 = 100 Hz.

The width of the filter is a trade-off. A narrow filter, say 50 Hz, keeps out noise and nearby signals but reacts slowly, so it can blur very fast Morse. A wide one reacts fast but lets more noise in. Each tool picks a sensible width and lets you change it.

Getting a clean signal

A decoder can only read what it hears, so most wrong characters come from a poor signal rather than from the decoder. Four habits help the most:

  1. Open the file instead of replaying it. A recording opened directly has no room echo, fan noise or speaker buzz in it. For the sound of a video, open the video file or share the browser tab.
  2. Get close and loud. Hold the mic 20 to 30 cm from the speaker and turn the speaker up until the tone stands at least 15 to 20 dB above the background on the small spectrum.
  3. Find the right tone. If two signals are on at once, the tool follows the stronger one. Click the peak you want on the small spectrum to lock onto it.
  4. Keep it steady. Phone mics can turn quiet sounds up and loud ones down. Short gaps in the sound, from Bluetooth or a video call, can also cut a beep in two; a cable or a file avoids both.

How these tools work in your browser

Every decoder runs on your own device. The sound from the microphone or the file is analysed by your browser and is never uploaded, and no account is needed. The results are as good as the signal: a clean recording usually decodes without a single error, while weak, fading or overlapping signals can give a few wrong or missing characters. Each tool shows what it heard, such as the tone on a small spectrum or the beeps on a timeline, so you can see why it read what it did.

FAQ

Can it decode a recording?

Yes, every decoder takes a live mic or an audio file.

Why are some characters wrong?

Noise, fading or two signals at once. Pick the tone on the small spectrum and raise the threshold.

Is decoding phone tones legal?

Decoding your own recordings is fine. Do not record calls or people without their consent where the law requires it.

Does the RPM tool need a sensor?

No. It uses the engine's sound frequency and the number of cylinders.

Written and tested by the SpectrumAnalyzer.app team · Last checked