[NEW] record-call: Record my audio for calls with Julia
Uses "pulse" default audio device on my PipeWire rig. Good enough!
This commit is contained in:
parent
2269df14d6
commit
d0f9d8a087
1 changed files with 34 additions and 0 deletions
34
scripts/record-call
Executable file
34
scripts/record-call
Executable file
|
|
@ -0,0 +1,34 @@
|
|||
#!/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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue