Skip to main content

Generate Morse Code (CW) audio files in Python.

Project description

pycw

Project Version Python Version

Python Morse Code Generator

Generate Morse Code (CW) audio files in Python.

Usage

optional arguments:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT
                        Input text file (defaults to stdin)
  -t TEXT, --text TEXT  Input text. Overrides --input.
  -s SPEED, --speed SPEED
                        Speed, in words per minute (default: 12)
  -n TONE, --tone TONE  Tone frequency, in Hz (default: 800)
  -v VOLUME, --volume VOLUME
                        Volume (default: 1.0)
  -r SAMPLE_RATE, --sample_rate SAMPLE_RATE
                        Sample rate (default: 44100)
  -o OUTPUT, --output OUTPUT
                        Name of the output file

Or import pycw and then use functions in your code, for example:

import pycw

pycw.output_wave("Intro.wav", "CQ CQ CQ DE BG5AWO BG5AWO BG5AWO PSE K", 20)

Then you can get a output file called Intro.wav in your working directory.

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

pycw-0.0.3.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

pycw-0.0.3-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file pycw-0.0.3.tar.gz.

File metadata

  • Download URL: pycw-0.0.3.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for pycw-0.0.3.tar.gz
Algorithm Hash digest
SHA256 8e72da2b9d2cd0745bfe7a626e55e92085b948e1f08b82fbc93098175e393955
MD5 7e8996080df147309fbeaa0ffccbc412
BLAKE2b-256 c69f6a12cdbcf04ccadbd0cd3dd526329a6aa8e43cdae38e520ea8ecdbadaec1

See more details on using hashes here.

File details

Details for the file pycw-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: pycw-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for pycw-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 df14d6706aaa9475312e8fb530e4931bb701d68d624e565b535d326832518828
MD5 7497a1aab54a5111355abb6d6413041c
BLAKE2b-256 d4c1765949ba797fb566e9eda3c2c2d50cb84c36eac2a4fc4711428373c29e9a

See more details on using hashes here.

Supported by

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