cli-scripts/scripts/oggrec

10 lines
134 B
Plaintext
Raw Normal View History

2024-02-29 20:44:48 +00:00
#!/usr/bin/env bash
if [ -z "$1" ]; then
file="outputfile.ogg"
else
file=$1
fi
arecord -f cd -t raw | oggenc - -r -o $file