A python script that reads from either a list of text or input to generate a sentence then interpret as morse code with sound.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
You will need
- Python 2.*
- PIP (Python Install Packages) - Link
- Pygame
- Markovify
A requirements.txt file has been provided for the installation of any necessary python packages onto your device.
pip install -r requirements.txt
These sections below will provide a detailed look on using the functions of the scripts.
There are a few functions in the morse.py file, however two functions should be utilized:
Use this to generate a markov-chain sentence from the provided file in the text_files directory:
generate_markov_morse(filename, file_format, number_of_sentences)
Use this to provide your own input via prompt:
input_prompt()
Currently you can generate a markov-chain and run the morse code interpretation via:
python morse.py
- Jimmy Le - JLDevops
This project is licensed under the MIT License - see the LICENSE.md file for details