bash-util/scripts/record-call

35 lines
556 B
Text
Raw Normal View History

#!/usr/bin/env bash
: '
* Record calls with Julia for future annotation 😻
* (just the audio on my end)
'
2024-10-01 13:10:07 -05:00
. "$(dirname $0)/util/logging.bash"
read -d '' usage <<EOUSAGE
Usage: $0 [-h]
OPTIONS
-h Display this help.
EOUSAGE
while getopts 'h' opt; do
case "${opt}" in
h)
excat "$usage"
;;
*)
dedcat "$usage"
;;
esac
done
shift $((OPTIND-1))
2024-10-01 13:10:07 -05:00
rec_prefix="$HOME/librecode/Julia Calls 😻/mine"
mkdir -p "$rec_prefix"
timestamp=$(mktimestamp)
ffmpeg -f pulse -ac 2 -i default "$rec_prefix/$timestamp.wav"