| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This repository provides a Python application for converting text into Morse code and playing it in real-time. Designed to run on the NVIDIA Jetson Orin Nano Developer Board, the application streams audio directly to a connected speaker.
To run this application on your Jetson Orin Nano Developer Board, ensure the following dependencies are installed:
pip3 install torchaudio torch
Install with: sudo apt-get update sudo apt-get install alsa-utils
Audio Output Configuration:
Development Environment:
The application adheres to standard Morse code timing:
Text-to-Morse Conversion:
Waveform Generation:
Real-Time Playback:
Clone the repository: git clone https://github.com/ValidusGroup-Design/realtime-morse-code.git cd realtime-morse-code
Run the application: python3 continuous_morse_playback.py
To use custom input (e.g., from a file), modify the text_stream function: def file_text_stream(filepath): with open(filepath, "r") as file: for line in file: yield line time.sleep(0.5) # Delay between lines
Replace the simulated stream with: play_morse_realtime(file_text_stream("book.txt"), wpm=20)
This application demonstrates how to:
Key aspects include:
The application is modular, making it easy to:
Running the application with the text "DE WF9Q" at 20 WPM:
The generated Morse code audio will be streamed and played via your system's audio device.
Feel free to submit issues or pull requests to improve this project. Contributions are always welcome!
This project is licensed under the MIT License. See LICENSE for more information.
| Back | FazBrowse Home | New Git URL |