GitHunt
XS

xsoltanx/MorseCode-Converter

A beautiful and interactive desktop application for converting text to Morse code and vice versa, built with Python and Tkinter.

Morse Code Converter

A beautiful and interactive desktop application for converting text to Morse code and vice versa, built with Python and Tkinter.

Python
License
Platform

โœจ Features

Feature Description
๐Ÿ”ค Text to Morse Conversion Convert English text to International Morse Code
๐Ÿ“ Morse to Text Conversion Decode Morse code back to readable text
๐ŸŽต Audio Playback Hear your Morse code with beep sounds
๐ŸŒ“ Theme Switching Toggle between dark and light modes
๐ŸŒ Bilingual Interface Available in both English and Persian
๐Ÿ“‹ Copy to Clipboard Easily copy results with one click
๐Ÿ’ซ Smooth Animations Enjoy beautiful transitions and typing effects
โšก Auto-Install Dependencies Automatic package installation on first run

๐Ÿš€ Quick Start

Prerequisites

  • Python 3.6 or higher
  • pip (Python package manager)

Installation

  1. Clone the repository

    git clone https://github.com/xsoltanx/MorseCode-Converter.git
    cd MorseCode-Converter
  2. Run the application

python Morse_Code_Converter.py

The application will automatically install any required dependencies on first run!

๐ŸŽฏ Usage

Text to Morse Code

Step
1 Select "Text to Morse" from the main menu
2 Enter your English text in the input field
3 Click "Convert" to generate Morse code
4 Use "Play Sound" to hear the Morse code
5 Copy the result with the "Copy" button

Morse Code to Text

Step
1 Select "Morse to Text" from the main menu
2 Enter Morse code using dots (.) and dashes (-)
3 Use space between letters and "/" between words
4 Click "Convert" to decode back to text

Morse Code Format

  • Letters: Separated by single spaces
  • Words: Separated by "/"
  • Example: HELLO WORLD = .... . .-.. .-.. --- / .-- --- .-. .-.. -..

๐Ÿ› ๏ธ Technical Details

Built With

  • Python - Core programming language
  • Tkinter - GUI framework
  • NumPy - Audio signal processing
  • SimpleAudio - Cross-platform audio playback
  • Winsound - Windows audio support

Supported Platforms

  • โœ… Windows

  • โœ… Linux

  • โœ… macOS

Morse Code Dictionary

The application supports:

  • All English letters (A-Z)

  • Numbers (0-9)

  • Space character

๐Ÿ“ธ Screenshots

Main Menu Text Conversion Morse Decoding
Screenshot of a main menu. Screenshot of a Text Conversion menu. Screenshot of a Morse Decoding menu.

๐ŸŽจ Features in Detail

Smart Installation

  • Automatic dependency checking
  • Visual installation progress
  • Error handling for failed installations

User Experience

  • Animated text output
  • Smooth theme transitions
  • Input validation with visual feedback
  • Persistent settings (language & theme)

Audio Implementation

  • Windows: Uses built-in winsound module
  • Other OS: Uses numpy and simpleaudio for cross-platform support
  • Customizable frequency and duration settings

๐Ÿ”ง Customization

You can modify these constants in the code:

unit = 150    # Duration unit in milliseconds
freq = 750    # Beep frequency in Hz

๐Ÿ™ Acknowledgments

  • International Morse Code standards
  • Python community for excellent libraries
  • Contributors and testers

๐Ÿ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

โญ Star this repo if you find it helpful!

Made with โค๏ธ

xsoltanx/MorseCode-Converter | GitHunt