cli-scripts/scripts/oggrec

10 lines
134 B
Bash
Executable File

#!/usr/bin/env bash
if [ -z "$1" ]; then
file="outputfile.ogg"
else
file=$1
fi
arecord -f cd -t raw | oggenc - -r -o $file