Skip to content

Commit

Permalink
Fix lang handling in TTS init
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Oct 13, 2023
1 parent 645d6b5 commit 054dcb6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ovos_plugin_manager/tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,12 @@ def create(config=None):
}
"""
tts_config = get_tts_config(config)
tts_lang = tts_config["lang"]
tts_module = tts_config.get('module', 'dummy')
try:
clazz = OVOSTTSFactory.get_class(tts_config)
if clazz:
LOG.info(f'Found plugin {tts_module}')
tts = clazz(tts_lang,
tts = clazz(None, # don't pass lang and force read from config
get_plugin_config(tts_config, "tts", tts_module))
tts.validator.validate()
LOG.info(f'Loaded plugin {tts_module}')
Expand Down

0 comments on commit 054dcb6

Please sign in to comment.