diff --git a/jasper.py b/jasper.py index 123b130e7..4e7f28edf 100755 --- a/jasper.py +++ b/jasper.py @@ -87,6 +87,12 @@ def __init__(self): "to '%s'", stt_engine_slug) stt_engine_class = stt.get_engine_by_slug(stt_engine_slug) + try: + slug = self.config['stt_passive_engine'] + stt_passive_engine_class = stt.get_engine_by_slug(slug) + except KeyError: + stt_passive_engine_class = stt_engine_class + try: tts_engine_slug = self.config['tts_engine'] except KeyError: @@ -97,7 +103,7 @@ def __init__(self): # Initialize Mic self.mic = Mic(tts_engine_class.get_instance(), - stt_engine_class.get_passive_instance(), + stt_passive_engine_class.get_passive_instance(), stt_engine_class.get_active_instance()) def run(self):