FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Morse Code Translator with Audio Playback — Built in JavaScript
How-ToWeb Development

Morse Code Translator with Audio Playback — Built in JavaScript

via Dev.to TutorialTateLyman2h ago

I built a Morse code translator that converts text to dots and dashes — and plays the audio. The Build The encoding is straightforward — a lookup table mapping each character to its Morse pattern: const MORSE = { A : " .- " , B : " -... " , C : " -.-. " , // ... etc }; The audio part uses the Web Audio API: const ctx = new AudioContext (); const osc = ctx . createOscillator (); osc . frequency . value = 600 ; // classic Morse tone Dots play for 60ms, dashes for 180ms (3x). Letter gaps are 180ms, word gaps 420ms. Features Encode text → Morse Decode Morse → text Audio playback at 600Hz Full A-Z, 0-9, punctuation reference chart Copy results Try the Morse Code Translator Related tools: Binary Converter Roman Numeral Converter Text to Binary Full toolkit: devtools-site-delta.vercel.app

Continue reading on Dev.to Tutorial

Opens in a new tab

Read Full Article
0 views

Related Articles

We Tested This FREE TradingView Trend Indicator… It Only Works Here!
How-To

We Tested This FREE TradingView Trend Indicator… It Only Works Here!

Medium Programming • 3h ago

5 Campfire Songs Anyone Can Play on Guitar (Free Chord Charts)
How-To

5 Campfire Songs Anyone Can Play on Guitar (Free Chord Charts)

Dev.to Beginners • 6h ago

Bybit vs HTX — Which Crypto Exchange Is Better? (2026)
How-To

Bybit vs HTX — Which Crypto Exchange Is Better? (2026)

Dev.to Beginners • 6h ago

Stop Posting Noise: Building in Public Needs Real Value
How-To

Stop Posting Noise: Building in Public Needs Real Value

Dev.to Beginners • 7h ago

We got an audience with the "Lunar Viceroy" to talk how NASA will build a Moon base
How-To

We got an audience with the "Lunar Viceroy" to talk how NASA will build a Moon base

Ars Technica • 7h ago

Discover More Articles