summaryrefslogtreecommitdiff
path: root/client/tts.py
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2014-10-20 17:27:53 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2014-10-20 17:27:53 +0200
commite472c35c2640497b68d6a660fb8c110fe29bd226 (patch)
treeaf0d8b968b43a2a773be80239d0d6b0f81c9166a /client/tts.py
parent7d89df8547f5341efb8129d45d1f21fe18bb994a (diff)
downloadjasper-client-e472c35c2640497b68d6a660fb8c110fe29bd226.tar.gz
jasper-client-e472c35c2640497b68d6a660fb8c110fe29bd226.zip
Adapt STT engine API from PR jasperproject/jasper-client#219 in tts.py
Diffstat (limited to 'client/tts.py')
-rw-r--r--client/tts.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/client/tts.py b/client/tts.py
index 43c8ccb..71f4ea8 100644
--- a/client/tts.py
+++ b/client/tts.py
@@ -37,6 +37,16 @@ class AbstractTTSEngine(object):
__metaclass__ = ABCMeta
@classmethod
+ def get_config(cls):
+ return {}
+
+ @classmethod
+ def get_instance(cls):
+ config = cls.get_config()
+ instance = cls(**config)
+ return instance
+
+ @classmethod
@abstractmethod
def is_available(cls):
return diagnose.check_executable('aplay')