From 0a585be9c1d75785b902fc1728c8896d91b90425 Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Mon, 2 Oct 2023 15:27:37 -0700 Subject: [PATCH] Troubleshoot TTS stopwatch --- neon_audio/tts/neon.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/neon_audio/tts/neon.py b/neon_audio/tts/neon.py index 06d8a80..dd84cbb 100644 --- a/neon_audio/tts/neon.py +++ b/neon_audio/tts/neon.py @@ -160,9 +160,8 @@ def _play(self): class WrappedTTS(TTS): - _stopwatch = Stopwatch("get_tts") - def __new__(cls, base_engine, *args, **kwargs): + base_engine._stopwatch = Stopwatch("get_tts") base_engine.execute = cls.execute base_engine.get_multiple_tts = cls.get_multiple_tts # TODO: Below method is only to bridge compatibility