diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-10-20 17:27:53 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-10-20 17:27:53 +0200 |
| commit | e472c35c2640497b68d6a660fb8c110fe29bd226 (patch) | |
| tree | af0d8b968b43a2a773be80239d0d6b0f81c9166a /client | |
| parent | 7d89df8547f5341efb8129d45d1f21fe18bb994a (diff) | |
| download | jasper-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')
| -rw-r--r-- | client/tts.py | 10 |
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') |
