Skip to content

xsoltanx/MorseCode-Converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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 ❤️

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages