summaryrefslogtreecommitdiffstats
path: root/util/t/stt/stt-works-with-espeak
blob: 31710974360d238492580b1e02fd378b248e4f9e (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

cd $(dirname $(readlink -f $0))
. ../../lib/stt/google.sh
tmp=$(mktemp)
test_str="hello"
trap "rm $tmp" TERM INT EXIT HUP
espeak --stdout "$test_str" | flac --totally-silent -f -o "$tmp" -

stt "$tmp" | egrep "^$test_str\$" >/dev/null