This is a simple Python program that translates text into Morse code.
This program requires the following Python library :
pygame
You can install them by running the following command:
pip install -r requirements.txt
To use this program, run the main.py file and enter the text you want to translate into Morse code. The program will output the Morse code both as text and as sound.
Enter text to translate: Hello, world!
... . .-.. .-.. --- .-- --- .-. .-.. -..
This program uses pygame to play the Morse code as sound. If you do not hear any sound, please check your volume settings.
This program was inspired by the Morse Code Translator on morsecode.world.
Hamdy Abou El Anein