DEV Community

Cover image for I created a simple Morse Code Converter that can generate equivalent sounds
Arjun Krishna
Arjun Krishna

Posted on

I created a simple Morse Code Converter that can generate equivalent sounds

Morse code is a method used in telecommunication to encode text characters as standardized sequences of two different signal durations, called dots and dashes, or dits and dahs.

I create a simple Morse Code Converter that converts typed-text to Morse Code (vice-versa), both visually and in audio format.

Desktop View

The converter fields could accept either Text (English) or Morse Code and could convert them to one another. The both scenarios the audio played will be of the Morse Code.

Mobile View

Here in this project, Morse Code is represented visually using periods (.) and hyphens (-). The input fields aren't case sensitive. But while converting Morse Code back to text, it displays result as in Uppercase.


🌟 Buttons

  • CONVERT - Convert Text to Morse Code
  • RESET - Clear the input fields
  • COPY TO CLIPBOARD - Copy the Morse Code result to clipboard
  • PLAY AUDIO - Replay the Audio result of Morse Code

🌟 Dev Stack

  • Handlebars (HTML, CSS (Bootstrap))
  • JavaScript
  • Web Audio API

🚀 Demo Link

🕵️ GitHub Repo

Top comments (0)