Skip to content

Commit

Permalink
Troubleshooting test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Feb 7, 2025
1 parent 90084c4 commit 92c7a8e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions neon_audio/tts/neon.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,6 @@ def _init_neon(base_engine, *args, **kwargs):
base_engine.keys = {}

base_engine.language_config = language_config
base_engine.lang = base_engine.lang or language_config.get("user",
"en-us")
try:
if language_config.get('detection_module'):
# Prevent loading a detector if not configured
Expand All @@ -245,11 +243,13 @@ def _init_neon(base_engine, *args, **kwargs):
base_engine.cache_dir = cache_dir
base_engine.cached_translations = cached_translations

# Patch breaking change in OVOS that normalizes en-US instead of en-us
base_engine.lang = base_engine.lang.lower()

return base_engine

@property
def lang(self):
# Patch breaking change in OVOS that normalizes en-US instead of en-us
return super().lang.lower()

def _init_playback(self, playback_thread: NeonPlaybackThread = None):
# shutdown any previous thread
if TTS.playback:
Expand Down

0 comments on commit 92c7a8e

Please sign in to comment.