From e472c35c2640497b68d6a660fb8c110fe29bd226 Mon Sep 17 00:00:00 2001 From: schneefux Date: Mon, 20 Oct 2014 17:27:53 +0200 Subject: Adapt STT engine API from PR jasperproject/jasper-client#219 in tts.py --- client/tts.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'client') diff --git a/client/tts.py b/client/tts.py index 43c8ccb..71f4ea8 100644 --- a/client/tts.py +++ b/client/tts.py @@ -36,6 +36,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): -- cgit v1.3.1