https://github.com/tomscheers/morse_code
A basic morse code translating, translating a string into morse code and plays it.
https://github.com/tomscheers/morse_code
Last synced: 9 months ago
JSON representation
A basic morse code translating, translating a string into morse code and plays it.
- Host: GitHub
- URL: https://github.com/tomscheers/morse_code
- Owner: tomScheers
- Created: 2024-11-04T10:01:14.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-04T10:19:51.000Z (about 1 year ago)
- Last Synced: 2025-02-01T13:23:10.886Z (11 months ago)
- Language: Python
- Size: 60.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Morse Code Translator
A basic translator in python that translates a string into Morse code. The program outputs the Morse code as text and plays beep to represent the dots and dashes.
# Requirements
- Python 3.x
- `vlc` for Python
To install `vlc` for python, run:
```bash
pip3 install python-vlc
```
or, on Debian-based systems:
```bash
sudo apt install python3-vlc
```
# Usage
1. Clone the repository and navigate to it:
```bash
git clone https://github.com/tomScheers/Morse_Code
cd Morse_Code
```
2. Run the program
```bash
python3 main.py
```
3. Provide your input:
- When prompted, type the string you want translated to Morse code (e.g., `"Hello, World!"`).
- The program will ignore any non-alphanumeric characters and convert uppercase letters to lowercase.
- You'll then see the Morse code representation printed, and you'll hear short and long beep for dots and dashes