2020-03-07 02:00:35 +01:00
|
|
|
from platypush.backend.stt import SttBackend
|
2020-03-06 00:38:24 +01:00
|
|
|
|
|
|
|
|
2020-03-07 02:00:35 +01:00
|
|
|
class SttDeepspeechBackend(SttBackend):
|
2020-03-06 00:38:24 +01:00
|
|
|
"""
|
|
|
|
Backend for the Mozilla Deepspeech speech-to-text engine plugin. Set this plugin to ``enabled`` if you
|
|
|
|
want to run the speech-to-text engine continuously instead of programmatically using
|
|
|
|
``start_detection`` and ``stop_detection``.
|
|
|
|
|
|
|
|
Requires:
|
|
|
|
|
|
|
|
- The :class:`platypush.plugins.stt.deepspeech.SttDeepspeechPlugin` plugin configured and its dependencies
|
|
|
|
installed, as well as the language model files.
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
2020-03-07 02:00:35 +01:00
|
|
|
def __init__(self, *args, **kwargs):
|
|
|
|
super().__init__('stt.deepspeech', *args, **kwargs)
|
2020-03-06 00:38:24 +01:00
|
|
|
|
|
|
|
|
|
|
|
# vim:sw=4:ts=4:et:
|