summaryrefslogtreecommitdiffstats
path: root/util/t/stt/stt-works-with-espeak
diff options
context:
space:
mode:
Diffstat (limited to 'util/t/stt/stt-works-with-espeak')
-rw-r--r--util/t/stt/stt-works-with-espeak10
1 files changed, 10 insertions, 0 deletions
diff --git a/util/t/stt/stt-works-with-espeak b/util/t/stt/stt-works-with-espeak
new file mode 100644
index 00000000..31710974
--- /dev/null
+++ b/util/t/stt/stt-works-with-espeak
@@ -0,0 +1,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