diff options
author | lassulus <lassulus@googlemail.com> | 2013-11-06 14:33:16 +0100 |
---|---|---|
committer | lassulus <lassulus@googlemail.com> | 2013-11-06 14:33:16 +0100 |
commit | fca6bdeafc18edbd9c881979b0f48dd69f779a82 (patch) | |
tree | 9d1b9f924d216b1a04aa4545f649d7554c8efccb /util/bin | |
parent | 63480bb3e7f268e91bbd143f18c3e5df324b1874 (diff) | |
parent | 7d6b65a71a3a18bb50c699e57738723d2056f436 (diff) |
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'util/bin')
-rwxr-xr-x | util/bin/mic.stt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/util/bin/mic.stt b/util/bin/mic.stt new file mode 100755 index 00000000..9236f85c --- /dev/null +++ b/util/bin/mic.stt @@ -0,0 +1,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" |