Skip to content

Commit

Permalink
fix:default_config
Browse files Browse the repository at this point in the history
handle when config isnt passed to Factory
  • Loading branch information
JarbasAl committed Sep 11, 2024
1 parent 62a052b commit 6783676
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions ovos_plugin_manager/g2p.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ def create(cls, config=None):
"module": <engine_name>
}
"""
config = config or Configuration()
if "g2p" in config:
config = config["g2p"]
g2p_config = get_g2p_config(config)
Expand Down
1 change: 1 addition & 0 deletions ovos_plugin_manager/microphone.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def create(cls, config=None):
"module": <engine_name>
}
"""
config = config or Configuration()
if "microphone" in config:
config = config["microphone"]
microphone_config = get_microphone_config(config)
Expand Down
1 change: 1 addition & 0 deletions ovos_plugin_manager/vad.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def create(cls, config=None):
"module": <engine_name>
}
"""
config = config or Configuration()
if "listener" in config:
config = config["listener"]
if "VAD" in config:
Expand Down

0 comments on commit 6783676

Please sign in to comment.