summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-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')