summaryrefslogtreecommitdiff
path: root/client/test.py
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2014-09-24 17:08:31 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2014-09-26 13:34:48 +0200
commit39e4be4ed9a619595417140469cd312575c0a37c (patch)
tree93b05c314e1f563c770d69a8333e148710fafb2c /client/test.py
parenta93846a2b75720741f71835269834a093e099955 (diff)
downloadjasper-client-39e4be4ed9a619595417140469cd312575c0a37c.tar.gz
jasper-client-39e4be4ed9a619595417140469cd312575c0a37c.zip
Added testcase for tts with DummyTTS engine
Diffstat (limited to 'client/test.py')
-rw-r--r--client/test.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/client/test.py b/client/test.py
index 0ad37a3..ffeff73 100644
--- a/client/test.py
+++ b/client/test.py
@@ -12,6 +12,7 @@ import vocabcompiler
import g2p
import brain
import jasperpath
+import tts
from diagnose import Diagnostics
DEFAULT_PROFILE = {
@@ -192,6 +193,11 @@ class TestModules(unittest.TestCase):
"can't see that far ahead" in outputs[0]
or "Tomorrow" in outputs[0])
+class TestTTS(unittest.TestCase):
+ def testTTS(self):
+ tts_engine = tts.get_engine_by_slug('dummy-tts')
+ tts_instance = tts_engine()
+ tts_instance.say('This is a test.')
class TestBrain(unittest.TestCase):
@@ -239,7 +245,7 @@ if __name__ == '__main__':
# Change CWD to jasperpath.LIB_PATH
os.chdir(jasperpath.LIB_PATH)
- test_cases = [TestBrain, TestModules, TestVocabCompiler]
+ test_cases = [TestBrain, TestModules, TestVocabCompiler, TestTTS]
if not args.light:
test_cases.append(TestG2P)
test_cases.append(TestMic)