DEV Community

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

Posted on

3 2

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

SurveyJS custom survey software

Build Your Own Forms without Manual Coding

SurveyJS UI libraries let you build a JSON-based form management system that integrates with any backend, giving you full control over your data with no user limits. Includes support for custom question types, skip logic, an integrated CSS editor, PDF export, real-time analytics, and more.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs