Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

maudio-0.0.1.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

maudio-0.0.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file maudio-0.0.1.tar.gz.

File metadata

  • Download URL: maudio-0.0.1.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

Hashes for maudio-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0ebfd7c2352cd77fd67fe36c2f2ffe1d3a877a2907fc62c5f2dbf5ecaa22bd3e
MD5 6df368fcab378fa57da96d70f4e6dee7
BLAKE2b-256 6fc7752afb2dd80039a050eef54a66601dbd40a443db083b07fd706ad5c0de6b

See more details on using hashes here.

File details

Details for the file maudio-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: maudio-0.0.1-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

Hashes for maudio-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 85dc88197404277cafcf70b364f67e84e77285e3a7694745ce0c511efe86da32
MD5 2821510dd948f8d0e26eb5d728e02596
BLAKE2b-256 0db628fa59f63289fd84994ab03ed7714e7b5eedb8f20e2d6b97b5d2e1339df3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page