Skip to content

Commit

Permalink
Added config file changes
Browse files Browse the repository at this point in the history
  • Loading branch information
albrnick committed Mar 31, 2015
1 parent d124346 commit b0f4d44
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion jasper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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):
Expand Down

0 comments on commit b0f4d44

Please sign in to comment.