Minimal Morse code audio encoder ( WAV format )
Project description
About
Maudio is a command-line tool for generating Morse code audio in .wav format from plain text input. It allows configuration of tone frequency, sample rate, amplitude, bit depth, Morse speed (WPM), and optional Farnsworth spacing. Can also output Morse code as text without generating audio.
Getting Started
Installation
git clone https://github.com/Mohd-Sinan/maudio.git
cd maudio
pip install .
Usage
Use the tool like this:
maudio "your message here" [options]
To display the help menu:
maudio -h
You can also pipe input from another command:
echo "hello world" | maudio --noaudio
Example
maudio "SOS HELP" -f 700 -w 20 -v
CLI Options
| Option | Description |
|---|---|
message |
Positional argument: the message to convert to Morse |
-h, --help |
Show help message and exit |
-v, --verbose |
Enable verbose output |
-o, --output |
Output WAV file name (default: temp.wav) |
-f, --frequency |
Tone frequency in Hz (default: 600) |
-s, --sample-rate |
Audio sample rate in Hz (default: 44100) |
-b, --bits |
Bit depth (default: 16) |
-w, --wpm |
Words per minute (speed) (default: 18) |
-a, --amplitude |
Tone amplitude (0.0 to 1.0) (default: 0.5) |
--noaudio |
Prints Morse code without generating audio. |
--farns |
Apply Farnsworth timing with given WPM for spacing |
Python Example
from maudio import get_cipher, get_audio
# Convert message to Morse code
msg = "hello world"
cipher = get_cipher(msg)
print("Morse code:", cipher)
# Generate audio from Morse code
get_audio(
cipher,
output="output.wav",
wpm=18,
freq=600,
bits=16,
rate=44100,
amp=0.5,
farns=None
)
Uninstall?
pip uninstall maudio
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file maudio-0.0.2.tar.gz.
File metadata
- Download URL: maudio-0.0.2.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a417cfbecde106c8418283f6af28bc3ebd3e3b9100ac4e7b8291d4923bcbe363
|
|
| MD5 |
4f915ddd7f670d83a0c96564deaba5c8
|
|
| BLAKE2b-256 |
adda34f2c71f40155b7cbd447ae1eaaf38deb1aae130c1781cc82fcbf01d3b79
|
File details
Details for the file maudio-0.0.2-py3-none-any.whl.
File metadata
- Download URL: maudio-0.0.2-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3aeec9085d315a00b43b5269376d35c88f27c7a60df957e521f9bbf61c798e1
|
|
| MD5 |
62de0bfdc08cf09db7554fa36d7f6385
|
|
| BLAKE2b-256 |
f3ed92097a73c38e30eef284834cca882f55dbeba06e2b90af251a3e8e75c4ad
|