Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
Refactor stopwatch init
  • Loading branch information
NeonDaniel committed Nov 17, 2023
1 parent b9bad6c commit 3d19fa2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion neon_audio/tts/neon.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ def _play(self):

class WrappedTTS(TTS):
def __new__(cls, base_engine, *args, **kwargs):
base_engine._stopwatch = Stopwatch("get_tts", allow_reporting=True)
base_engine.execute = cls.execute
base_engine.get_multiple_tts = cls.get_multiple_tts
# TODO: Below method is only to bridge compatibility
Expand Down Expand Up @@ -232,6 +231,9 @@ def _init_neon(base_engine, *args, **kwargs):
os.makedirs(cache_dir, exist_ok=True)
base_engine.cache_dir = cache_dir
base_engine.cached_translations = cached_translations
base_engine._stopwatch = Stopwatch("get_tts", allow_reporting=True,
bus=base_engine.bus)

return base_engine

def _init_playback(self, playback_thread: NeonPlaybackThread = None):
Expand Down
2 changes: 1 addition & 1 deletion requirements/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ovos-utils~=0.0.35
ovos-config~=0.0.10
phoneme-guesser~=0.1
ovos-plugin-manager~=0.0.24
neon-utils[network]~=1.6
neon-utils[network]~=1.6,>=1.7.1a3
click~=8.0
click-default-group~=1.2
ovos-bus-client~=0.0.3
Expand Down

0 comments on commit 3d19fa2

Please sign in to comment.