blob: 9236f85c02cf00c4521694d7d2837c55774a4b3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/sh
set -efux
cd $(dirname $(readlink -f $0))
. ../lib/stt/google.sh
duration=${1?please provide duration via \$1}
lang=${lang:-de-DE}
export lang
echo "language is set to $lang"
echo "will record for '$duration' seconds"
f=$(record_audio ${duration})
trap 'rm $f' TERM EXIT HUP
stt "$f"
|