annotate record-audio @ 3:29dc6ad8d8ac
Update path for temporary photos (ones not yet catalogued/checked for being poor)
author |
IBBoard <dev@ibboard.co.uk> |
date |
Sun, 09 Nov 2014 09:27:24 +0000 |
parents |
e85e3470a41e |
children |
|
rev |
line source |
0
|
1 #! /bin/bash
|
|
2
|
|
3 WAV="$1"
|
|
4 if [ -z "$WAV" ]; then
|
|
5 echo "Usage: $0 OUTPUT.WAV" >&2
|
|
6 exit 1
|
|
7 fi
|
|
8 rm -f "$WAV"
|
|
9
|
|
10 MONITOR=$(pactl list | grep -A2 '^Source #' | \
|
|
11 grep 'Name: .*\.monitor$' | awk '{print $NF}' | tail -n1)
|
|
12 parec -d "$MONITOR" | sox -t raw -r 44100 -Lb 16 -e signed-integer -c 2 - "$WAV"
|