From fe1017207310d0cfd6448750205d08b2455f20a2 Mon Sep 17 00:00:00 2001 From: makefu Date: Tue, 5 Nov 2013 23:36:37 +0100 Subject: add espeak smoke test for stt --- util/t/stt/stt-works-with-espeak | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 util/t/stt/stt-works-with-espeak (limited to 'util/t') 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 -- cgit v1.2.3