bash-util/scripts/record-call
Andrea Rogers d0f9d8a087 [NEW] record-call: Record my audio for calls with Julia
Uses "pulse" default audio device on my PipeWire rig.  Good enough!
2024-09-30 14:07:38 -05:00

34 lines
551 B
Bash
Executable file

#!/usr/bin/env bash
: '
* Record calls with Julia for future annotation 😻
* (just the audio on my end)
'
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))
. "$(dirname $0)/util/logging.bash"
rec_prefix="$HOME/librecode/Julia Calls 😻"
mkdir -p "$rec_prefix"
timestamp=$(mktimestamp)
ffmpeg -f pulse -ac 2 -i default "$rec_prefix/$timestamp.wav"