Skip to content

Instantly share code, notes, and snippets.

@markjenkins
Created June 7, 2024 01:57
Show Gist options
  • Save markjenkins/9ffbf88ddd73c889d709ed163b391a48 to your computer and use it in GitHub Desktop.
Save markjenkins/9ffbf88ddd73c889d709ed163b391a48 to your computer and use it in GitHub Desktop.
morse code play tools
#!/bin/sh
opusenc $1 `basename -s .wav $1`.opus
#!/bin/bash
# simple script for converting a text file to wav
# place this in the same directory as
# https://github.com/markjenkins/cduck_morse/tree/workableAsLibrary
# $1 is text file
# $2 is char speed
# $3 is farnsworth speed
FREQ=500
ORIGDIR=`dirname $1`
ORIGDIR=`realpath $ORIGDIR`
# get in the same directory as this script
cd `dirname $0`
./play.py -f $FREQ --wpm $2 --fs $3 \
-o $ORIGDIR/`basename -s .txt $1`.wav \
< $ORIGDIR/`basename $1`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment