summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2013-11-05 23:36:37 +0100
committermakefu <github@syntax-fehler.de>2013-11-05 23:36:37 +0100
commitfe1017207310d0cfd6448750205d08b2455f20a2 (patch)
treead0117a4d1c68cfbfef9e45f110279233380aaf0
parent628ad2aaa2e207aa2836e9b68f7bfbd890dff766 (diff)
add espeak smoke test for stt
-rwxr-xr-xutil/t/stt/stt-works-with-espeak16
1 files changed, 16 insertions, 0 deletions
diff --git a/util/t/stt/stt-works-with-espeak b/util/t/stt/stt-works-with-espeak
new file mode 100755
index 00000000..ff39f567
--- /dev/null
+++ b/util/t/stt/stt-works-with-espeak
@@ -0,0 +1,16 @@
+#!/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" -
+
+if stt "$tmp" | egrep "^$test_str\$" >/dev/null ;then
+ echo "ok"
+ exit 0
+else
+ echo "not ok"
+ exit 1
+fi